From 4692c27f13034312a1964c109189bce39122d23f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 13 Mar 2025 18:57:17 +0100 Subject: [PATCH] enforce streams duration calculation in case muxer quirk demands it --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index a093604..bcd3213 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1339,6 +1339,11 @@ fn main() { } let mux_creator = ret.unwrap(); + let mux_quirks = mux_creator.get_quirks(); + if mux_quirks.is_fixed_duration() { + transcoder.calc_len = true; + } + if transcoder.calc_len { let mut sids = Vec::new(); transcoder.nframes.clear(); -- 2.39.5