From 4c5fa4928a2ac8118a2dd93fb42ced92430fb7ec Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 8 Apr 2020 12:22:01 +0200 Subject: [PATCH] codec_support/h263: fix slice reset condition --- nihav-codec-support/src/codecs/h263/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-codec-support/src/codecs/h263/decoder.rs b/nihav-codec-support/src/codecs/h263/decoder.rs index 9828d0b..1d67032 100644 --- a/nihav-codec-support/src/codecs/h263/decoder.rs +++ b/nihav-codec-support/src/codecs/h263/decoder.rs @@ -485,7 +485,7 @@ impl H263BaseDecoder { slice_start = mb_pos; } slice = bd.decode_slice_header(&pinfo)?; - if !self.is_gob && self.slice_reset { + if self.is_gob || self.slice_reset { mvi.reset(self.mb_w, mb_x, pinfo.get_mvmode()); if is_b || pinfo.is_pb() { mvi2.reset(self.mb_w, mb_x, pinfo.get_mvmode()); -- 2.39.5