1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 1826 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2003-04-27 13:44:01 +00:00
parent 067ff8b1ee
commit cfcff63685

View File

@ -2241,9 +2241,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
for(;;) {
/* find start next code */
start_code = find_start_code(&buf_ptr, buf_end);
if (start_code < 0){
printf("missing end of picture\n");
return FFMAX(1, buf_ptr - buf - s2->parse_context.last_index);
if (start_code < 0){
// printf("missing end of picture\n");
return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
}
/* prepare data for next start code */