Commit ef1f51d5 authored by vitor's avatar vitor

Normalize triplets in gain_val_tab[][] so gain_exp_tab[] can be just an

one-dimensional array.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15273 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 57d4930f
......@@ -136,7 +136,7 @@ static void add_wav(int16_t *dest, int n, int skip_first, int *m,
v[0] = 0;
for (i=!skip_first; i<3; i++)
v[i] = (gain_val_tab[n][i] * m[i]) >> (gain_exp_tab[n][i] + 1);
v[i] = (gain_val_tab[n][i] * m[i]) >> gain_exp_tab[n];
for (i=0; i < BLOCKSIZE; i++)
dest[i] = (s1[i]*v[0] + s2[i]*v[1] + s3[i]*v[2]) >> 12;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment