Commit 6aa37bcf authored by Michael Niedermayer's avatar Michael Niedermayer

simplify

Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cf409a6f
......@@ -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)
......
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