From df886e7e025d133deb87282722f97cf7455f4d97 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Sat, 18 Aug 2007 00:44:14 +0000
Subject: [PATCH] fix cur_dts at the end of av_estimate_timings_from_pts()

Originally committed as revision 10137 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/utils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index dd2d6823a29..9663a99f88d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1566,6 +1566,10 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic, offset_t old_offse
     fill_all_stream_timings(ic);
 
     url_fseek(&ic->pb, old_offset, SEEK_SET);
+    for(i=0; i<ic->nb_streams; i++){
+        st= ic->streams[i];
+        st->cur_dts= st->first_dts;
+    }
 }
 
 static void av_estimate_timings(AVFormatContext *ic, offset_t old_offset)
-- 
GitLab