summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-04-27 13:44:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-04-27 13:44:01 +0000
commitcfcff6368572ed9ae3d7b6b428b1ff58fbcc2507 (patch)
tree74c1d8d52dc4dd69dc8638a80eb2d67f7031f59d
parent067ff8b1eeaeecc0f7e479448aba154a599a41dc (diff)
10l
Originally committed as revision 1826 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpeg12.c6
1 files 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 */