Commit d7ead9ad authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dd5f9259
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment