diff options
author | John Stebbins <stebbins@jetheaddev.com> | 2009-12-12 15:26:33 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-12-12 15:26:33 +0000 |
commit | 106fa129f498c93f9639a09d186c2223abe2b2c0 (patch) | |
tree | 1d9a2aced4788f563596cc504ed64bcb564fd9e9 | |
parent | 92f99a33b8886798015a87923bddda817cc5ca41 (diff) | |
download | ffmpeg-106fa129f498c93f9639a09d186c2223abe2b2c0.tar.gz |
Reset pts_buffers in av_read_frame_flush().
Patch by John Stebbins, jstebbins jetheaddev com
Originally committed as revision 20806 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 98f670d489..af9ec25566 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1177,7 +1177,7 @@ int av_find_default_stream_index(AVFormatContext *s) void av_read_frame_flush(AVFormatContext *s) { AVStream *st; - int i; + int i, j; flush_packet_queue(s); @@ -1200,6 +1200,9 @@ void av_read_frame_flush(AVFormatContext *s) st->cur_len = 0; st->probe_packets = MAX_PROBE_PACKETS; + + for(j=0; j<MAX_REORDER_DELAY+1; j++) + st->pts_buffer[j]= AV_NOPTS_VALUE; } } |