Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-06-17 13:46:59 +00:00
parent cf409a6fec
commit 6aa37bcf19
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ static inline int16_t inverse_quant(G726Context* c, int i)
dql = c->tbls->iquant[i] + (c->y >> 2);
dex = (dql>>7) & 0xf; /* 4bit exponent */
dqt = (1<<7) + (dql & 0x7f); /* log2 -> linear */
return (dql < 0) ? 0 : ((dqt<<7) >> (14-dex));
return (dql < 0) ? 0 : ((dqt<<dex) >> 7);
}
static int16_t g726_decode(G726Context* c, int16_t I)