Warn about packed B-frames. (especially useful if the file in question is
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 26 May 2008 11:32:42 +0000 (11:32 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 26 May 2008 11:32:42 +0000 (11:32 +0000)
not an avi ...)

Originally committed as revision 13428 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.c

index ad54203..d1ea394 100644 (file)
@@ -5751,6 +5751,8 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){
         s->divx_version= ver;
         s->divx_build= build;
         s->divx_packed= e==3 && last=='p';
+        if(s->divx_packed)
+            av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n");
     }
 
     /* ffmpeg detection */