fix allocated buffer mutability after previous commit
[nihav.git] / nihav-realmedia / src / codecs / ra288.rs
index 00e0bd680b1056400b2cfa6a8b0abf2d297aefb7..a5acc291b038876e60d92a326c6e4a683e42a074 100644 (file)
@@ -172,7 +172,7 @@ impl NADecoder for RA288Decoder {
         let nframes = pktbuf.len() / FRAME_SIZE;
         let duration = NBLOCKS * BLOCKSIZE * 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();