]> git.nihav.org Git - nihav.git/commitdiff
vp7: reset scan on keyframe
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 8 Feb 2020 10:26:08 +0000 (11:26 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 8 Feb 2020 10:26:08 +0000 (11:26 +0100)
nihav-duck/src/codecs/vp7.rs

index ac6ea91eff7aaa11adb7d07c18fab43a9ce4eecb..3079fd079dd813d02d26f5ddff1b7b436e091069 100644 (file)
@@ -1159,6 +1159,7 @@ impl NADecoder for VP7Decoder {
             self.set_dimensions(width, height);
 
             self.dstate.reset();
+            self.scan.copy_from_slice(&DEFAULT_SCAN_ORDER);
         } else {
             if !self.shuf.has_refs() {
                 return Err(DecoderError::MissingReference);