[MPlayer-cvslog] r32679 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sat Dec 11 13:23:07 CET 2010


Author: reimar
Date: Sat Dec 11 13:23:07 2010
New Revision: 32679

Log:
Support very high libav* message levels as e.g. the flac parser
produces and map them to MSGL_DBG2 instead of MSGL_ERROR.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Wed Dec  8 23:53:52 2010	(r32678)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sat Dec 11 13:23:07 2010	(r32679)
@@ -191,7 +191,7 @@ static void mp_msp_av_log_callback(void 
     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){


More information about the MPlayer-cvslog mailing list