# HG changeset patch # User reimar # Date 1292070187 0 # Node ID 9ec31cdc76ad08778cdc2fafa3b53268883a0e28 # Parent 4cd3a8a2274881db8c3afb374d4bea92147dcc68 Support very high libav* message levels as e.g. the flac parser produces and map them to MSGL_DBG2 instead of MSGL_ERROR. diff -r 4cd3a8a22748 -r 9ec31cdc76ad libmpcodecs/vd_ffmpeg.c --- 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){