diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-09-08 18:51:33 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-09-08 18:51:33 +0000 |
commit | 20242eed9939bfd746ab064c4052fe497925220a (patch) | |
tree | bb83053abf4e397af67f4d89fc7c218967b85b03 /libavcodec/ra144.c | |
parent | 475e4e2ffc94be9b9870ce9fe300e706b655660f (diff) | |
download | ffmpeg-20242eed9939bfd746ab064c4052fe497925220a.tar.gz |
Normalize triplets in gain_val_tab[][] so gain_exp_tab[] can be just an
one-dimensional array.
Originally committed as revision 15273 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 35d4a50c44..d2d1d46725 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -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; |