]> git.nihav.org Git - nihav.git/commitdiff
indeo4: backwards MV should be stored as MV1, not MV2
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 2 Aug 2017 09:16:50 +0000 (11:16 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 2 Aug 2017 09:16:50 +0000 (11:16 +0200)
src/codecs/indeo/indeo4.rs

index 60c45aba0d084e276d871bc05d66ff4a1964b5a9..1c95c60fd5da0c9f8ada795a8aada4ad03fbfdf3 100644 (file)
@@ -289,10 +289,8 @@ impl IndeoXParser for Indeo4Parser {
                             mb.mv_x = mv_x;
                             mb.mv_y = mv_y;
                             if mb.mtype == MBType::Backward {
-                                mb.mv2_x = -mb.mv_x;
-                                mb.mv2_y = -mb.mv_y;
-                                mb.mv_x  = 0;
-                                mb.mv_y  = 0;
+                                mb.mv_x = -mb.mv_x;
+                                mb.mv_y = -mb.mv_y;
                             } else if mb.mtype == MBType::Bidir {
                                 mv_y += br.read_ivi_cb_s(&self.mb_cb)?;
                                 mv_x += br.read_ivi_cb_s(&self.mb_cb)?;