You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
utils: fix duration calculation for strange_duration_example.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2326,8 +2326,6 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
|
|||||||
duration -= st->start_time;
|
duration -= st->start_time;
|
||||||
else
|
else
|
||||||
duration -= st->first_dts;
|
duration -= st->first_dts;
|
||||||
if (duration < 0)
|
|
||||||
duration += 1LL<<st->pts_wrap_bits;
|
|
||||||
if (duration > 0) {
|
if (duration > 0) {
|
||||||
if (st->duration == AV_NOPTS_VALUE || st->duration < duration)
|
if (st->duration == AV_NOPTS_VALUE || st->duration < duration)
|
||||||
st->duration = duration;
|
st->duration = duration;
|
||||||
|
Reference in New Issue
Block a user