Mercurial > libavcodec.hg
diff g726.c @ 7058:819e52ba3125 libavcodec
simplify
author | michael |
---|---|
date | Tue, 17 Jun 2008 13:46:59 +0000 |
parents | 2de55b561147 |
children | 54e5978dd41a |
line wrap: on
line diff
--- a/g726.c Tue Jun 17 13:40:40 2008 +0000 +++ b/g726.c Tue Jun 17 13:46:59 2008 +0000 @@ -180,7 +180,7 @@ 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)