Skip to content

Commit

Permalink
Dont shift F[I] twice, its also clearer and smaller now.
Browse files Browse the repository at this point in the history
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13818 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
  • Loading branch information
michael committed Jun 19, 2008
1 parent 5280d47 commit cc32213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavcodec/g726.c
Expand Up @@ -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 {
Expand Down

0 comments on commit cc32213

Please sign in to comment.