From: Kostya Shishkov Date: Thu, 13 Feb 2025 17:51:02 +0000 (+0100) Subject: binkaud: fix mono RDFT decoding X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=47da4a32161659c7bba591147bc7fa720ca2bcc6;p=nihav.git binkaud: fix mono RDFT decoding --- diff --git a/nihav-rad/src/codecs/binkaud.rs b/nihav-rad/src/codecs/binkaud.rs index 3880f45..0e17db1 100644 --- a/nihav-rad/src/codecs/binkaud.rs +++ b/nihav-rad/src/codecs/binkaud.rs @@ -135,6 +135,9 @@ impl BinkAudioDecoder { let buf = &mut self.coeffs[0..]; rdft.do_rdft_inplace(std::mem::transmute::<&mut [f32], &mut [FFTComplex]>(buf)); } + for i in (0..self.coeffs.len()).step_by(2) { + self.coeffs.swap(i, i + 1); + } }, _ => unreachable!(), };