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; jpts_buffer[j]= AV_NOPTS_VALUE; } }