mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 08:15:29 +00:00
craft-audio: the Vorbis decoder's bit-reversal loop iterates the table
This commit is contained in:
1 parent
de861bef5a
commit
e524806621
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user