Browse Source

simplify

Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
6aa37bcf19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/g726.c

+ 1
- 1
libavcodec/g726.c 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)


Loading…
Cancel
Save