oops
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Mar 2002 02:36:08 +0000 (02:36 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Mar 2002 02:36:08 +0000 (02:36 +0000)
Originally committed as revision 345 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.c

index a1e038e..60baedb 100644 (file)
@@ -2125,7 +2125,7 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
             break;
         }
         state = ((state << 8) | v) & 0xffffff;
-        if( get_bits_count(&s->gb) > s->gb.size*8){
+        if( get_bits_count(&s->gb) > s->gb.size*8-32){
             printf("no VOP startcode found\n");
             return -1;
         }