X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fsipro.rs;h=22181cb844501b358efcb9af31be92e320f282bd;hb=d24468d9dbd54f5cbe414649ff061699337fa7fe;hp=44f7942e2cea5706fb883a0ff63417e8d91db91e;hpb=5580b11b0e9daf065c81a8b354295c6d5d1dd3dd;p=nihav.git diff --git a/nihav-commonfmt/src/codecs/sipro.rs b/nihav-commonfmt/src/codecs/sipro.rs index 44f7942..22181cb 100644 --- a/nihav-commonfmt/src/codecs/sipro.rs +++ b/nihav-commonfmt/src/codecs/sipro.rs @@ -685,7 +685,7 @@ impl NADecoder for SiproDecoder { let frame_len = self.mode.subframe_len * self.mode.subframes; for (input, output) in pktbuf.chunks(frm_size).zip(dst.chunks_mut(out_frm_size)) { - let mut br = BitReader::new(input, input.len(), BitReaderMode::LE); + let mut br = BitReader::new(input, BitReaderMode::LE); for dst in output.chunks_mut(frame_len) { self.unpack_frame(&mut br)?; if self.mode_type.is16k() { @@ -736,7 +736,7 @@ impl NADecoder for SiproDecoder { } } -pub fn get_decoder() -> Box { +pub fn get_decoder() -> Box { Box::new(SiproDecoder::new()) }