X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-codec-support%2Fsrc%2Fcodecs%2Fh263%2Fmod.rs;h=e357778175a840552b8b794945254a5cd04935f2;hp=8c3ca655088008480e30e64f32c7d63d66123770;hb=379524159c95f1c3639976ccf35f9d47cd9732ac;hpb=401b2b60a38e3eb19ae19aee9e652f7c8c0cf6f8 diff --git a/nihav-codec-support/src/codecs/h263/mod.rs b/nihav-codec-support/src/codecs/h263/mod.rs index 8c3ca65..e357778 100644 --- a/nihav-codec-support/src/codecs/h263/mod.rs +++ b/nihav-codec-support/src/codecs/h263/mod.rs @@ -2,6 +2,7 @@ use nihav_core::codecs::DecoderResult; use super::{MV, ZERO_MV}; use nihav_core::frame::{NAVideoBuffer, NAVideoBufferRef}; +#[allow(clippy::erasing_op)] #[allow(clippy::many_single_char_names)] pub mod code; pub mod data; @@ -357,9 +358,9 @@ impl CBPInfo { fn new() -> Self { CBPInfo{ cbp: Vec::new(), q: Vec::new(), mb_w: 0 } } fn reset(&mut self, mb_w: usize) { self.mb_w = mb_w; - self.cbp.truncate(0); + self.cbp.clear(); self.cbp.resize(self.mb_w * 2, 0); - self.q.truncate(0); + self.q.clear(); self.q.resize(self.mb_w * 2, 0); } fn update_row(&mut self) {