]> git.nihav.org Git - nihav.git/commitdiff
indeo/ivi: fix reference selection
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 13 Dec 2019 18:09:57 +0000 (19:09 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 13 Dec 2019 18:09:57 +0000 (19:09 +0100)
nihav-indeo/src/codecs/ivibr.rs

index f11d6dc1a487427414d7b5df5e5cf27dc97c7cf4..53ee9e91cad6d3be1c320ea4411be6ad5003cad7 100644 (file)
@@ -897,14 +897,11 @@ br.skip(skip_part as u32)?;
         }
 
         match self.ftype {
-            IVIFrameType::Intra | IVIFrameType::Inter => {
+            IVIFrameType::Intra | IVIFrameType::Intra1 | IVIFrameType::Inter => {
                     self.iref_1   = self.iref_0;
                     self.iref_0   = self.cur_frame;
                     self.scal_ref = self.cur_frame;
                 },
-            IVIFrameType::InterScal => {
-                    self.scal_ref = self.cur_frame;
-                },
             _ => {},
         };