changeset 5433:3e568c0b36d3 libavformat

Reset pts_buffers in av_read_frame_flush(). Patch by John Stebbins, jstebbins jetheaddev com
author cehoyos
date Sat, 12 Dec 2009 15:26:33 +0000
parents f282f7758d6e
children 68c8e7affd44
files utils.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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; j<MAX_REORDER_DELAY+1; j++)
+            st->pts_buffer[j]= AV_NOPTS_VALUE;
     }
 }