Commit 2e7c76f0 authored by cehoyos's avatar cehoyos

Reset pts_buffers in av_read_frame_flush().

Patch by John Stebbins, jstebbins jetheaddev com 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20806 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a3b4126e
...@@ -1177,7 +1177,7 @@ int av_find_default_stream_index(AVFormatContext *s) ...@@ -1177,7 +1177,7 @@ int av_find_default_stream_index(AVFormatContext *s)
void av_read_frame_flush(AVFormatContext *s) void av_read_frame_flush(AVFormatContext *s)
{ {
AVStream *st; AVStream *st;
int i; int i, j;
flush_packet_queue(s); flush_packet_queue(s);
...@@ -1200,6 +1200,9 @@ void av_read_frame_flush(AVFormatContext *s) ...@@ -1200,6 +1200,9 @@ void av_read_frame_flush(AVFormatContext *s)
st->cur_len = 0; st->cur_len = 0;
st->probe_packets = MAX_PROBE_PACKETS; st->probe_packets = MAX_PROBE_PACKETS;
for(j=0; j<MAX_REORDER_DELAY+1; j++)
st->pts_buffer[j]= AV_NOPTS_VALUE;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment