]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h263dec.c
Split bit allocation search into a separate function.
[ffmpeg] / libavcodec / h263dec.c
index b0a3a8a7fef07b94389fd1efd22f08bf3e0be39d..04417c256d58a5e5b2601c777b434a835f8f6d6d 100644 (file)
@@ -261,6 +261,13 @@ static int decode_slice(MpegEncContext *s){
 
     assert(s->mb_x==0 && s->mb_y==s->mb_height);
 
+    if(s->codec_id==CODEC_ID_MPEG4
+       && (s->workaround_bugs&FF_BUG_AUTODETECT)
+       && get_bits_left(&s->gb) >= 48
+       && show_bits(&s->gb, 24)==0x4010
+       && !s->data_partitioning)
+        s->padding_bug_score+=32;
+
     /* try to detect the padding bug */
     if(      s->codec_id==CODEC_ID_MPEG4
        &&   (s->workaround_bugs&FF_BUG_AUTODETECT)