diff ra144.c @ 6848:20a7e808dd82 libavcodec

Make wavtable a table instead of an array
author vitor
date Sat, 24 May 2008 09:15:01 +0000
parents 61ff2f1d36bb
children 3feec67125d8
line wrap: on
line diff
--- a/ra144.c	Sat May 24 07:19:12 2008 +0000
+++ b/ra144.c	Sat May 24 09:15:01 2008 +0000
@@ -128,8 +128,8 @@
     int b, c, i;
     const short *ptr, *ptr2;
 
-    ptr  = wavtable1 + n * 9;
-    ptr2 = wavtable2 + n * 9;
+    ptr  = wavtable1[n];
+    ptr2 = wavtable2[n];
 
     if (f)
         a = (ptr[0] * m1) >> (ptr2[0] + 1);