Commit cfcff636 authored by Michael Niedermayer's avatar Michael Niedermayer

10l

Originally committed as revision 1826 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 067ff8b1
...@@ -2241,9 +2241,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx, ...@@ -2241,9 +2241,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
for(;;) { for(;;) {
/* find start next code */ /* find start next code */
start_code = find_start_code(&buf_ptr, buf_end); start_code = find_start_code(&buf_ptr, buf_end);
if (start_code < 0){ if (start_code < 0){
printf("missing end of picture\n"); // printf("missing end of picture\n");
return FFMAX(1, buf_ptr - buf - s2->parse_context.last_index); return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
} }
/* prepare data for next start code */ /* prepare data for next start code */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment