From cfcff6368572ed9ae3d7b6b428b1ff58fbcc2507 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 27 Apr 2003 13:44:01 +0000 Subject: 10l Originally committed as revision 1826 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index d3cef315e4..7cb1592cab 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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 */ -- cgit v1.2.3