diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-04 02:15:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-04 02:18:04 +0100 |
commit | d7ead9ad4450d2e7d51af92217e97d2cce575a88 (patch) | |
tree | 957b76308731467c52d98f689e130fe003244bab | |
parent | dd5f925927d6aaf01716a1a802a428340eeea077 (diff) | |
download | ffmpeg-d7ead9ad4450d2e7d51af92217e97d2cce575a88.tar.gz |
avformat/utils: also fix wrapping of start_time in update_initial_timestamps()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 8c29f08e74..69938460a5 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); |