changeset 1220:78a51075aacb libavcodec

10l
author michaelni
date Sun, 27 Apr 2003 13:44:01 +0000
parents ad21a7b2349b
children 867d8f0bede6
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sun Apr 27 01:33:39 2003 +0000
+++ b/mpeg12.c	Sun Apr 27 13:44:01 2003 +0000
@@ -2241,9 +2241,9 @@
     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 */