switch to refcounted buffers
[nihav.git] / nihav-commonfmt / src / codecs / sipro.rs
index 8820a011149d5d2ae5826c7b6e7087ed156f5f76..1b8d701e42125840034e1a0ac64277ad93b90c60 100644 (file)
@@ -680,9 +680,9 @@ impl NADecoder for SiproDecoder {
 
         let duration = out_frm_size * nframes;
 
-        let mut abuf = alloc_audio_buffer(self.ainfo, duration, self.chmap.clone())?;
+        let abuf = alloc_audio_buffer(self.ainfo, duration, self.chmap.clone())?;
         let mut adata = abuf.get_abuf_f32().unwrap();
-        let mut dst = adata.get_data_mut();
+        let dst = adata.get_data_mut().unwrap();
 
         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)) {