From: Kostya Shishkov Date: Fri, 4 Mar 2022 11:12:43 +0000 (+0100) Subject: vp7enc: fix encoding intra frames with too low quantiser X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3b48bf68e6df822ec0540cd905d528d82e2209e1;p=nihav.git vp7enc: fix encoding intra frames with too low quantiser --- 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 {