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 080ab95cec4090b13a2c24582d07c815da440268..336eb06d49524730dcdfa921a4642de1d9215ac8 100644 (file)
@@ -147,6 +147,10 @@ impl FrameEncoder {
                     self.features.push(0);
                 }
             }
                     self.features.push(0);
                 }
             }
+        } else {
+            for _ in 0..(self.mb_w * self.mb_h) {
+                self.features.push(0);
+            }
         }
 
         let mut imctx = IntraModePredCtx {
         }
 
         let mut imctx = IntraModePredCtx {