switch to refcounted buffers
[nihav.git] / nihav-rad / src / codecs / binkaud.rs
index 2bf93ff351df144cc4128f5c1e9aa69cec080724..c38f6d4beff88ca7094eefe4bf675e2ad8391591 100644 (file)
@@ -242,7 +242,7 @@ impl NADecoder for BinkAudioDecoder {
             let mut adata = abuf.get_abuf_f32().unwrap();
             let mut off0 = adata.get_offset(0);
             let mut off1 = adata.get_offset(1);
-            let mut dst = adata.get_data_mut();
+            let dst = adata.get_data_mut().unwrap();
 
             let num_subframes = nsamples / self.duration / self.chmap.num_channels() / 2;