You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
92f99a33b8
commit
106fa129f4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user