From 3466a80176672730fe9ebb5cab498e9b3f8385f3 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 2 Aug 2017 11:16:50 +0200 Subject: [PATCH] indeo4: backwards MV should be stored as MV1, not MV2 --- src/codecs/indeo/indeo4.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/codecs/indeo/indeo4.rs b/src/codecs/indeo/indeo4.rs index 60c45ab..1c95c60 100644 --- a/src/codecs/indeo/indeo4.rs +++ b/src/codecs/indeo/indeo4.rs @@ -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)?; -- 2.39.5