From 5a5edb08804fadd6059450ae6f9fbae3af9c6820 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 15 Feb 2023 19:49:20 +0100 Subject: [PATCH] indeo3enc: fix always enabled frame recompression --- nihav-indeo/src/codecs/indeo3enc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5