X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-itu%2Fsrc%2Fcodecs%2Fh264%2Fmod.rs;h=e23d909930bcc4704168027ca8c5d23c1b077268;hp=5ecd05cc6fd875baacc8ad4ef1e19981e3a0418a;hb=379524159c95f1c3639976ccf35f9d47cd9732ac;hpb=696e4e20bf7167121352f247893370cb83213d5c diff --git a/nihav-itu/src/codecs/h264/mod.rs b/nihav-itu/src/codecs/h264/mod.rs index 5ecd05c..e23d909 100644 --- a/nihav-itu/src/codecs/h264/mod.rs +++ b/nihav-itu/src/codecs/h264/mod.rs @@ -15,6 +15,10 @@ mod types; pub use types::*; mod pic_ref; pub use pic_ref::*; +#[allow(clippy::identity_op)] +#[allow(clippy::erasing_op)] +#[allow(clippy::many_single_char_names)] +#[allow(clippy::range_plus_one)] mod dsp; use dsp::*; mod cabac; @@ -190,7 +194,7 @@ struct H264Decoder { fn unescape_nal(src: &[u8], dst: &mut Vec) -> usize { let mut off = 0; let mut zrun = 0; - dst.truncate(0); + dst.clear(); dst.reserve(src.len()); while off < src.len() { dst.push(src[off]); @@ -653,6 +657,7 @@ println!("PAFF?"); } } } + #[allow(clippy::cognitive_complexity)] fn handle_macroblock(&mut self, mb_info: &mut CurrentMBInfo) { let pps = &self.pps[self.cur_pps];