]> git.nihav.org Git - nihav.git/commitdiff
codec_support/h263: fix slice reset condition
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 8 Apr 2020 10:22:01 +0000 (12:22 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 8 Apr 2020 10:22:01 +0000 (12:22 +0200)
nihav-codec-support/src/codecs/h263/decoder.rs

index 9828d0b9f835e888c71b1c3203054df1e271e356..1d670323705dfe0a8e451cfa210918498bbb5a27 100644 (file)
@@ -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());