1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 345 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2002-03-22 02:36:08 +00:00
parent 45870f5718
commit c7d5049c98

View File

@ -2125,7 +2125,7 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
break; break;
} }
state = ((state << 8) | v) & 0xffffff; 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"); printf("no VOP startcode found\n");
return -1; return -1;
} }