diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-03-02 15:12:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-03-02 15:12:26 +0000 |
commit | 2cc304215d53b1e4140508f10c407c29754687e9 (patch) | |
tree | e9f576d1741111c34b7a5b1961e791f1cc241637 /libavcodec/parser.c | |
parent | a4c7a5ea27050a28625eabf1ba98cfef9ac6620d (diff) | |
download | ffmpeg-2cc304215d53b1e4140508f10c407c29754687e9.tar.gz |
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.
Originally committed as revision 17732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index c0a0095309..9a9424f0cb 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -96,6 +96,8 @@ void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){ 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; } } } |