diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-08-18 00:44:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-08-18 00:44:14 +0000 |
commit | df886e7e025d133deb87282722f97cf7455f4d97 (patch) | |
tree | 84e80845fd7efbe5f8b4a1f24cc25f94f947a4f8 /libavformat/utils.c | |
parent | e26381b6da2436764492fb868bd8f6f27e99ce6e (diff) | |
download | ffmpeg-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
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
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) |