Factorize c->ap += (-c->ap) >> 4 out
Originally committed as revision 13817 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0e0d6cfd48
commit
50c52d2250
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user