From: Kostya Shishkov Date: Sat, 24 Feb 2018 14:04:54 +0000 (+0100) Subject: h263: update num_mv2 in set_mv2() X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5a3ac1b7ad4ea52f43b0464ecedffdad9db643fe;p=nihav.git h263: update num_mv2 in set_mv2() --- 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 }