Commit 424599c7 authored by Michael Niedermayer's avatar Michael Niedermayer

estimate_timings_from_pts: simplify filesize end check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5d944f58
...@@ -2530,7 +2530,7 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset) ...@@ -2530,7 +2530,7 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
av_free_packet(pkt); av_free_packet(pkt);
} }
} while (end_time == AV_NOPTS_VALUE && } while (end_time == AV_NOPTS_VALUE &&
filesize > (DURATION_MAX_READ_SIZE << retry) && offset &&
++retry <= DURATION_MAX_RETRY); ++retry <= DURATION_MAX_RETRY);
/* warn about audio/video streams which duration could not be estimated */ /* warn about audio/video streams which duration could not be estimated */
......
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