From: Kostya Shishkov Date: Thu, 13 Mar 2025 17:57:17 +0000 (+0100) Subject: enforce streams duration calculation in case muxer quirk demands it X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4692c27f13034312a1964c109189bce39122d23f;p=nihav-encoder.git enforce streams duration calculation in case muxer quirk demands it --- 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();