X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-qt%2Fsrc%2Fcodecs%2Fqdm2qmf.rs;h=d8cafa24910221c03e10c26da740e41403c3a83d;hb=964dffda42954044e7628b212bd389ff554c1027;hp=bd018aa7717e24675670bada16de0f91f3f09224;hpb=237cc1f9576ed23c7a2f9bb34b43e5d07e93f710;p=nihav.git diff --git a/nihav-qt/src/codecs/qdm2qmf.rs b/nihav-qt/src/codecs/qdm2qmf.rs index bd018aa..d8cafa2 100644 --- a/nihav-qt/src/codecs/qdm2qmf.rs +++ b/nihav-qt/src/codecs/qdm2qmf.rs @@ -359,7 +359,7 @@ unimplemented!(); } q = q.wrapping_sub(self.grid_3_quant[ch][band - 4]); } - self.tone_idx[ch][band][i] = q as i8; + self.tone_idx[ch][band][i] = q; if q > 0 || (self.is_intra && q == 0) { self.tone_scale[ch][band][i] = TONE_SCALES[0][(q & 0x3F) as usize]; } else { @@ -370,7 +370,7 @@ unimplemented!(); } } } - #[allow(clippy::cyclomatic_complexity)] + #[allow(clippy::cognitive_complexity)] fn read_noise_band(&mut self, br: &mut QdmBitReader, ch: usize, band: usize, samples: &mut [f32; 10], signs: &[bool; 16], jstereo: bool) -> DecoderResult<()> { let mut type34_first = true; let mut type34_pred = 0.0;