aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-17 13:46:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-17 13:46:59 +0000
commit6aa37bcf19f556189fcc669c7c0733509448e9a1 (patch)
treeee3f4f48ad375f0963823548fdb1977080b6bda0 /libavcodec
parentcf409a6fec51733ed68d389213a7b9036f461738 (diff)
downloadffmpeg-6aa37bcf19f556189fcc669c7c0733509448e9a1.tar.gz
simplify
Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/g726.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index fd33d8c5dd..22ad6a36ba 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -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)