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-game
/
src
/
codecs
/
bmv.rs
diff --git
a/nihav-game/src/codecs/bmv.rs
b/nihav-game/src/codecs/bmv.rs
index cea10eb272784e045b06d06dc447112678c44bb0..229ac4940a6556b5f7073100567c831a8116ff57 100644
(file)
--- a/
nihav-game/src/codecs/bmv.rs
+++ b/
nihav-game/src/codecs/bmv.rs
@@
-275,7
+275,7
@@
impl NADecoder for BMVAudioDecoder {
let nblocks = pktbuf[0] as usize;
validate!(pktbuf.len() == 1 + 65 * nblocks);
let samples = nblocks * 32;
let nblocks = pktbuf[0] as usize;
validate!(pktbuf.len() == 1 + 65 * nblocks);
let samples = nblocks * 32;
- let
mut
abuf = alloc_audio_buffer(self.ainfo, samples, self.chmap.clone())?;
+ let abuf = alloc_audio_buffer(self.ainfo, samples, self.chmap.clone())?;
let mut adata = abuf.get_abuf_i16().unwrap();
let off1 = adata.get_offset(1);
let mut dst = adata.get_data_mut();
let mut adata = abuf.get_abuf_i16().unwrap();
let off1 = adata.get_offset(1);
let mut dst = adata.get_data_mut();