From 3b48bf68e6df822ec0540cd905d528d82e2209e1 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 4 Mar 2022 12:12:43 +0100 Subject: [PATCH] vp7enc: fix encoding intra frames with too low quantiser --- nihav-duck/src/codecs/vp7enc/frame_coder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nihav-duck/src/codecs/vp7enc/frame_coder.rs b/nihav-duck/src/codecs/vp7enc/frame_coder.rs index 080ab95..336eb06 100644 --- a/nihav-duck/src/codecs/vp7enc/frame_coder.rs +++ b/nihav-duck/src/codecs/vp7enc/frame_coder.rs @@ -147,6 +147,10 @@ impl FrameEncoder { self.features.push(0); } } + } else { + for _ in 0..(self.mb_w * self.mb_h) { + self.features.push(0); + } } let mut imctx = IntraModePredCtx { -- 2.39.5