mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
simplify
Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user