aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-18 00:44:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-18 00:44:14 +0000
commitdf886e7e025d133deb87282722f97cf7455f4d97 (patch)
tree84e80845fd7efbe5f8b4a1f24cc25f94f947a4f8
parente26381b6da2436764492fb868bd8f6f27e99ce6e (diff)
downloadffmpeg-df886e7e025d133deb87282722f97cf7455f4d97.tar.gz
fix cur_dts at the end of av_estimate_timings_from_pts()
Originally committed as revision 10137 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index dd2d6823a2..9663a99f88 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)