From: Kostya Shishkov Date: Wed, 8 Apr 2020 10:22:01 +0000 (+0200) Subject: codec_support/h263: fix slice reset condition X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4c5fa4928a2ac8118a2dd93fb42ced92430fb7ec;p=nihav.git codec_support/h263: fix slice reset condition --- 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());