From: Kostya Shishkov Date: Wed, 15 Feb 2023 18:49:20 +0000 (+0100) Subject: indeo3enc: fix always enabled frame recompression X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5a5edb08804fadd6059450ae6f9fbae3af9c6820;p=nihav.git indeo3enc: fix always enabled frame recompression --- diff --git a/nihav-indeo/src/codecs/indeo3enc/mod.rs b/nihav-indeo/src/codecs/indeo3enc/mod.rs index 1c6bf77..a3a3177 100644 --- a/nihav-indeo/src/codecs/indeo3enc/mod.rs +++ b/nihav-indeo/src/codecs/indeo3enc/mod.rs @@ -355,7 +355,7 @@ impl NAEncoder for Indeo3Encoder { self.encode_planes(&mut dbuf, &trees, is_intra)?; let cur_quant = self.cenc.quant.unwrap_or(42); - if !is_intra && cur_quant < 8 { + if self.try_again && !is_intra && cur_quant < 8 { let expected_size = self.rc.get_expected_size(); if expected_size > 0 { let cur_size = dbuf.len() as u32;