X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-llaudio%2Fsrc%2Fcodecs%2Fwavpack.rs;h=31629e7f29fec7081347bef240d4219cad1c5f93;hb=0e18270ddb438c765a4597404f9053a15ce84704;hp=07aef40873a37700a8185477d50db4264355722c;hpb=87927c5732b39bb23209486bed8d7bb7fc56b92e;p=nihav.git diff --git a/nihav-llaudio/src/codecs/wavpack.rs b/nihav-llaudio/src/codecs/wavpack.rs index 07aef40..31629e7 100644 --- a/nihav-llaudio/src/codecs/wavpack.rs +++ b/nihav-llaudio/src/codecs/wavpack.rs @@ -22,7 +22,7 @@ const WV_FLAG_END_BLOCK: u32 = 1 << 12; const WV_FLAG_FALSE_STEREO: u32 = 1 << 30; const WV_FLAG_DSD_AUDIO: u32 = 1 << 31; -const WV_STREAM_FLAGS: u32 = 0x8000018B; +const WV_STREAM_FLAGS: u32 = 0x8000008B; #[derive(Clone,Copy,Default)] struct WVHeader { @@ -654,7 +654,7 @@ impl WavPackDecoder { dstate: DecorrState::new(), } } - #[allow(clippy::cyclomatic_complexity)] + #[allow(clippy::cognitive_complexity)] fn decode_block(&mut self, hdr: &WVHeader, src: &[u8], start_ch: usize, abuf: &mut NABufferType) -> DecoderResult<()> { let mut mr = MemoryReader::new_read(src); let mut br = ByteReader::new(&mut mr); @@ -1063,6 +1063,7 @@ mod test { use nihav_codec_support::test::dec_video::*; use crate::llaudio_register_all_decoders; use crate::llaudio_register_all_demuxers; + // samples come from the official WavPack test samples set #[test] fn test_wavpack_8bit() { let mut dmx_reg = RegisteredDemuxers::new();