switch to refcounted buffers
[nihav.git] / nihav-commonfmt / src / codecs / aac.rs
index 02223c8a969fa0a5aeebb976b346a44ab87a1663..8232e07f1f7caa689b8da38f40de3e714b4bdbb5 100644 (file)
@@ -966,7 +966,7 @@ impl ChannelPair {
     }
     fn synth_audio(&mut self, dsp: &mut DSP, abuf: &mut NABufferType, srate_idx: usize) {
         let mut adata = abuf.get_abuf_f32().unwrap();
-        let mut output = adata.get_data_mut();
+        let output = adata.get_data_mut().unwrap();
         let off0 = abuf.get_offset(self.channel);
         let off1 = abuf.get_offset(self.channel + 1);
         self.ics[0].synth_channel(dsp, &mut output[off0..], srate_idx);