# HG changeset patch # User cehoyos # Date 1260631593 0 # Node ID 3e568c0b36d39975db812f42b1db4550d463ffc8 # Parent f282f7758d6ebb891890a9a925b58026a1671c22 Reset pts_buffers in av_read_frame_flush(). Patch by John Stebbins, jstebbins jetheaddev com diff -r f282f7758d6e -r 3e568c0b36d3 utils.c --- a/utils.c Fri Dec 11 17:13:35 2009 +0000 +++ b/utils.c Sat Dec 12 15:26:33 2009 +0000 @@ -1177,7 +1177,7 @@ void av_read_frame_flush(AVFormatContext *s) { AVStream *st; - int i; + int i, j; flush_packet_queue(s); @@ -1200,6 +1200,9 @@ st->cur_len = 0; st->probe_packets = MAX_PROBE_PACKETS; + + for(j=0; jpts_buffer[j]= AV_NOPTS_VALUE; } }