craft-audio: the Vorbis decoder's bit-reversal loop iterates the table

This commit is contained in:
el-j committed 2026-11-17 11:25:41 +01:00
1 parent de861bef5a
commit e524806621
1 file changed
+1 -2
+1 -2
View File
@@ -69,8 +69,7 @@ impl Imdct {
fn fft(&self, a: &mut [Cpx]) {
let h = a.len();
for i in 0..h {
let j = self.rev[i];
for (i, &j) in self.rev.iter().enumerate() {
if i < j {
a.swap(i, j);
}