Commit 74d94417 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 50c52d22
...@@ -235,8 +235,8 @@ static int16_t g726_decode(G726Context* c, int I) ...@@ -235,8 +235,8 @@ static int16_t g726_decode(G726Context* c, int I)
c->td = c->a[1] < -11776; c->td = c->a[1] < -11776;
/* Update Ap */ /* Update Ap */
c->dms += ((c->tbls.F[I]<<9) - c->dms) >> 5; c->dms += (c->tbls.F[I]<<4) + ((- c->dms) >> 5);
c->dml += ((c->tbls.F[I]<<11) - c->dml) >> 7; c->dml += (c->tbls.F[I]<<4) + ((- c->dml) >> 7);
if (tr) if (tr)
c->ap = 256; c->ap = 256;
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment