Commit cc322135 authored by michael's avatar michael

Dont shift F[I] twice, its also clearer and smaller now.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13818 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5280d47b
......@@ -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 {
......
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