vp7enc: fix encoding intra frames with too low quantiser
[nihav.git] / nihav-duck / src / codecs / vp7enc / frame_coder.rs
index 080ab95cec4090b13a2c24582d07c815da440268..336eb06d49524730dcdfa921a4642de1d9215ac8 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 {