changeset 9091:4875c1559060 libavcodec

Favor container packets that end after the first byte of the access unit in fetch_timestamp(). This should make no difference for valid streams but may help invalid ones, also its needed for future changes.
author michael
date Mon, 02 Mar 2009 15:12:26 +0000
parents cecf81f93756
children 65f47b345904
files parser.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/parser.c	Mon Mar 02 14:53:18 2009 +0000
+++ b/parser.c	Mon Mar 02 15:12:26 2009 +0000
@@ -96,6 +96,8 @@
             s->offset = s->next_frame_offset - s->cur_frame_offset[i];
             if(remove)
                 s->cur_frame_offset[i]= INT64_MAX;
+            if(s->cur_offset + off < s->cur_frame_end[i])
+                break;
         }
     }
 }