vp7enc: fix encoding intra frames with too low quantiser
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 4 Mar 2022 11:12:43 +0000 (12:12 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 4 Mar 2022 11:12:43 +0000 (12:12 +0100)
nihav-duck/src/codecs/vp7enc/frame_coder.rs

index 080ab95..336eb06 100644 (file)
@@ -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 {