fix allocated buffer mutability after previous commit
[nihav.git] / nihav-commonfmt / src / codecs / sipro.rs
index 8820a011149d5d2ae5826c7b6e7087ed156f5f76..b6cab622224c88ec6f2764a76990b0f9fc6e6151 100644 (file)
@@ -680,7 +680,7 @@ 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();