aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-vivo/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:58 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:58 +0200
commit6f2630992fe340ad1a122ec10c649f756e478185 (patch)
treec8c95d46546cd71e2cd5e15faef02ca9acd2b70b /nihav-vivo/src
parentf44bddc9b5520507c7571b89763de668238d790a (diff)
downloadnihav-6f2630992fe340ad1a122ec10c649f756e478185.tar.gz
fix some clippy warnings
Diffstat (limited to 'nihav-vivo/src')
-rw-r--r--nihav-vivo/src/codecs/g723_1.rs4
-rw-r--r--nihav-vivo/src/codecs/vivo.rs2
-rw-r--r--nihav-vivo/src/demuxers/vivo.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/nihav-vivo/src/codecs/g723_1.rs b/nihav-vivo/src/codecs/g723_1.rs
index 2f650d8..da00042 100644
--- a/nihav-vivo/src/codecs/g723_1.rs
+++ b/nihav-vivo/src/codecs/g723_1.rs
@@ -938,9 +938,9 @@ impl NADecoder for G7231Decoder {
let abuf = alloc_audio_buffer(self.ainfo, SAMPLES, self.chmap.clone())?;
let mut adata = abuf.get_abuf_i16().unwrap();
- let mut asamples = adata.get_data_mut().unwrap();
+ let asamples = adata.get_data_mut().unwrap();
if self.cur_ftype == G7231FrameType::Active {
- self.synth_frame_active(&mut asamples, bad_frame);
+ self.synth_frame_active(asamples, bad_frame);
} else {
self.synth_frame_other();
}
diff --git a/nihav-vivo/src/codecs/vivo.rs b/nihav-vivo/src/codecs/vivo.rs
index 64af5ff..2e73b3b 100644
--- a/nihav-vivo/src/codecs/vivo.rs
+++ b/nihav-vivo/src/codecs/vivo.rs
@@ -272,7 +272,7 @@ struct VivoBR<'a> {
aic: bool,
}
-fn check_marker<'a>(br: &mut BitReader<'a>) -> DecoderResult<()> {
+fn check_marker(br: &mut BitReader) -> DecoderResult<()> {
let mark = br.read(1)?;
validate!(mark == 1);
Ok(())
diff --git a/nihav-vivo/src/demuxers/vivo.rs b/nihav-vivo/src/demuxers/vivo.rs
index cd8e97d..5d455b6 100644
--- a/nihav-vivo/src/demuxers/vivo.rs
+++ b/nihav-vivo/src/demuxers/vivo.rs
@@ -38,7 +38,7 @@ impl<'a> DemuxCore<'a> for VivoDemuxer<'a> {
let hdr = self.src.peek_byte()?;
if (hdr & 0xF0) != 0 { break; }
self.src.read_skip(1)?;
- let hdr_len = read_size(&mut self.src)?;
+ let hdr_len = read_size(self.src)?;
hdr_data.resize(hdr_len, 0);
self.src.read_buf(&mut hdr_data)?;
self.parse_header_packet(&hdr_data)?;