[FFmpeg-cvslog] avformat/utils: also fix wrapping of start_time in update_initial_timestamps()

Michael Niedermayer git at videolan.org
Wed Dec 4 02:59:42 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec  4 02:15:41 2013 +0100| [d7ead9ad4450d2e7d51af92217e97d2cce575a88] | committer: Michael Niedermayer

avformat/utils: also fix wrapping of start_time in update_initial_timestamps()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7ead9ad4450d2e7d51af92217e97d2cce575a88
---

 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8c29f08..6993846 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -975,6 +975,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index,
     if (update_wrap_reference(s, st, stream_index) && st->pts_wrap_behavior == AV_PTS_WRAP_SUB_OFFSET) {
         // correct first time stamps to negative values
         st->first_dts = wrap_timestamp(st, st->first_dts);
+        st->start_time = wrap_timestamp(st, st->start_time);
         st->cur_dts = wrap_timestamp(st, st->cur_dts);
         pkt->dts = wrap_timestamp(st, pkt->dts);
         pkt->pts = wrap_timestamp(st, pkt->pts);



More information about the ffmpeg-cvslog mailing list