From 9bc10e830169859a028c01b0b4d9126a7b0d52e7 Mon Sep 17 00:00:00 2001 From: Thomas Wilshaw Date: Tue, 25 Oct 2022 17:39:45 +0100 Subject: [PATCH] ffmpegdecoder: add comment --- app/codec/ffmpeg/ffmpegdecoder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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.";