Commit 5280d47b authored by michael's avatar michael

Factorize c->ap += (-c->ap) >> 4 out


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13817 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d6a4b62a
......@@ -239,10 +239,11 @@ static int16_t g726_decode(G726Context* c, int I)
c->dml += ((c->tbls.F[I]<<11) - c->dml) >> 7;
if (tr)
c->ap = 256;
else if (c->y > 1535 && !c->td && abs((c->dms << 2) - c->dml) < (c->dml >> 3))
else {
c->ap += (-c->ap) >> 4;
else
c->ap += (0x200 - c->ap) >> 4;
if (c->y <= 1535 || c->td || abs((c->dms << 2) - c->dml) >= (c->dml >> 3))
c->ap += 0x20;
}
/* Update Yu and Yl */
c->yu = av_clip(c->y + c->tbls.W[I] + ((-c->y)>>5), 544, 5120);
......
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