Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 32592:9ec31cdc76ad
Support very high libav* message levels as e.g. the flac parser
produces and map them to MSGL_DBG2 instead of MSGL_ERROR.
| author | reimar |
|---|---|
| date | Sat, 11 Dec 2010 12:23:07 +0000 |
| parents | 8fa2f43cb760 |
| children | 02830ab7afb7 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Wed Dec 08 22:53:52 2010 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Dec 11 12:23:07 2010 +0000 @@ -191,7 +191,7 @@ case AV_LOG_DEBUG: mp_level= MSGL_V ; break; case AV_LOG_INFO : mp_level= MSGL_INFO; break; case AV_LOG_ERROR: mp_level= MSGL_ERR ; break; - default : mp_level= MSGL_ERR ; break; + default : mp_level= level > AV_LOG_DEBUG ? MSGL_DBG2 : MSGL_ERR; break; } if(ptr){
