From 9ceb80a2c9827c890a2e5cd49f81fab24634b2f8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 8 Feb 2020 11:26:08 +0100 Subject: [PATCH] vp7: reset scan on keyframe --- nihav-duck/src/codecs/vp7.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-duck/src/codecs/vp7.rs b/nihav-duck/src/codecs/vp7.rs index ac6ea91..3079fd0 100644 --- a/nihav-duck/src/codecs/vp7.rs +++ b/nihav-duck/src/codecs/vp7.rs @@ -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); -- 2.39.5