changeset 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 4cd3a8a22748
children 0c5bb45690ea
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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){