projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix allocated buffer mutability after previous commit
[nihav.git]
/
nihav-indeo
/
src
/
codecs
/
imc.rs
diff --git
a/nihav-indeo/src/codecs/imc.rs
b/nihav-indeo/src/codecs/imc.rs
index a48e43efdb2cbbad41bca7cb3a3ed7a2cff81ed5..669e0fe9680f1014a61f77ef6e96c3c9f8dbd00a 100644
(file)
--- a/
nihav-indeo/src/codecs/imc.rs
+++ b/
nihav-indeo/src/codecs/imc.rs
@@
-896,7
+896,7
@@
impl NADecoder for IMCDecoder {
let nblocks = pktbuf.len() / BLOCK_SIZE / (self.ainfo.get_channels() as usize);
let duration = COEFFS * nblocks;
let nblocks = pktbuf.len() / BLOCK_SIZE / (self.ainfo.get_channels() as usize);
let duration = COEFFS * nblocks;
- 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();
let mut adata = abuf.get_abuf_f32().unwrap();
let mut dst = adata.get_data_mut();