[FFmpeg-cvslog] r20806 - trunk/libavformat/utils.c
cehoyos
subversion
Sat Dec 12 16:26:33 CET 2009
Author: cehoyos
Date: Sat Dec 12 16:26:33 2009
New Revision: 20806
Log:
Reset pts_buffers in av_read_frame_flush().
Patch by John Stebbins, jstebbins jetheaddev com
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Sat Dec 12 14:58:07 2009 (r20805)
+++ trunk/libavformat/utils.c Sat Dec 12 16:26:33 2009 (r20806)
@@ -1177,7 +1177,7 @@ int av_find_default_stream_index(AVForma
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
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;
}
}
More information about the ffmpeg-cvslog
mailing list