fix allocated buffer mutability after previous commit
[nihav.git] / nihav-realmedia / src / codecs / ra144.rs
index 23e32f2aa5c4e4133f38392ebe1565b369500b41..3587382e9a44e6ee98e1ad86e9060f347f521bbf 100644 (file)
@@ -264,7 +264,7 @@ impl NADecoder for RA144Decoder {
 
         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_i16().unwrap();
         let mut dst = adata.get_data_mut();