Browse Source

Do not shift F[I] twice, it is also clearer and smaller now.

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

+ 2
- 2
libavcodec/g726.c View File

@@ -235,8 +235,8 @@ static int16_t g726_decode(G726Context* c, int I)
c->td = c->a[1] < -11776;

/* Update Ap */
c->dms += ((c->tbls.F[I]<<9) - c->dms) >> 5;
c->dml += ((c->tbls.F[I]<<11) - c->dml) >> 7;
c->dms += (c->tbls.F[I]<<4) + ((- c->dms) >> 5);
c->dml += (c->tbls.F[I]<<4) + ((- c->dml) >> 7);
if (tr)
c->ap = 256;
else {


Loading…
Cancel
Save