diff --git a/app/codec/ffmpeg/ffmpegdecoder.cpp b/app/codec/ffmpeg/ffmpegdecoder.cpp index 6bff06232..87f96bb8c 100644 --- a/app/codec/ffmpeg/ffmpegdecoder.cpp +++ b/app/codec/ffmpeg/ffmpegdecoder.cpp @@ -352,6 +352,8 @@ FootageDescription FFmpegDecoder::Probe(const QString &filename, CancelAtom *can bool bad_duration = false; + // Catch when ffmpeg uses its inaccurate method of duration estimation so we can + // use manual calculation if (fmt_ctx->duration_estimation_method == AVFMT_DURATION_FROM_BITRATE) { bad_duration = true; qWarning() << "Potentially bad duration estimation, using fallback. This could be slow.";