Commit 5d944f58 authored by Gaullier Nicolas's avatar Gaullier Nicolas Committed by Michael Niedermayer

estimate_timings_from_pts: Also consider packet duration

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 85349d8d
......@@ -2515,7 +2515,7 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
if (pkt->pts != AV_NOPTS_VALUE &&
(st->start_time != AV_NOPTS_VALUE ||
st->first_dts != AV_NOPTS_VALUE)) {
duration = end_time = pkt->pts;
duration = end_time = pkt->pts + pkt->duration;
if (st->start_time != AV_NOPTS_VALUE)
duration -= st->start_time;
else
......
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