10000l to myself, fixing regression test failure
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Nov 2006 01:23:47 +0000 (01:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Nov 2006 01:23:47 +0000 (01:23 +0000)
Originally committed as revision 6953 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.c

index d86ee8f..ba51c24 100644 (file)
@@ -3196,7 +3196,7 @@ static inline int mpeg4_is_resync(MpegEncContext *s){
     }
 
     while(v<=0xFF){
-        if(s->pict_type==B_TYPE || (v>>(8-s->pict_type)!=1))
+        if(s->pict_type==B_TYPE || (v>>(8-s->pict_type)!=1) || s->partitioned_frame)
             break;
         skip_bits(&s->gb, 8+s->pict_type);
         bits_count+= 8+s->pict_type;