From 5a3ac1b7ad4ea52f43b0464ecedffdad9db643fe Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 24 Feb 2018 15:04:54 +0100 Subject: [PATCH] h263: update num_mv2 in set_mv2() --- src/codecs/h263/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codecs/h263/mod.rs b/src/codecs/h263/mod.rs index 4f066a6..9973dc7 100644 --- a/src/codecs/h263/mod.rs +++ b/src/codecs/h263/mod.rs @@ -267,7 +267,8 @@ impl BlockInfo { if mvs.len() > 0 { self.skip = false; } let mut mv_arr: [MV; 2] = [ZERO_MV, ZERO_MV]; for i in 0..mvs.len() { mv_arr[i] = mvs[i]; } - self.mv2 = mv_arr; + self.mv2 = mv_arr; + self.num_mv2 = mvs.len(); } pub fn is_b_fwd(&self) -> bool { self.fwd } pub fn set_acpred(&mut self, acpred: ACPredMode) { self.acpred = acpred } -- 2.39.5