From: Kostya Shishkov Date: Wed, 2 Aug 2017 09:16:50 +0000 (+0200) Subject: indeo4: backwards MV should be stored as MV1, not MV2 X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3466a80176672730fe9ebb5cab498e9b3f8385f3;p=nihav.git indeo4: backwards MV should be stored as MV1, not MV2 --- 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)?;