Originally committed as revision 1826 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 22 years ago
parent 067ff8b1ee
commit cfcff63685
  1. 4
      libavcodec/mpeg12.c

@ -2242,8 +2242,8 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
/* 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);
// printf("missing end of picture\n");
return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
}
/* prepare data for next start code */

Loading…
Cancel
Save