mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-29 21:47:48 +02:00
simplify
Originally committed as revision 13804 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c79c1a01a7
commit
e079a1c94f
@ -198,10 +198,7 @@ static int16_t g726_decode(G726Context* c, int16_t I)
|
|||||||
ylint = (c->yl >> 15);
|
ylint = (c->yl >> 15);
|
||||||
ylfrac = (c->yl >> 10) & 0x1f;
|
ylfrac = (c->yl >> 10) & 0x1f;
|
||||||
thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint;
|
thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint;
|
||||||
if (c->td == 1 && abs(dq) > ((thr2+(thr2>>1))>>1))
|
tr= (c->td == 1 && abs(dq) > ((3*thr2)>>2));
|
||||||
tr = 1;
|
|
||||||
else
|
|
||||||
tr = 0;
|
|
||||||
|
|
||||||
/* Update second order predictor coefficient A2 and A1 */
|
/* Update second order predictor coefficient A2 and A1 */
|
||||||
pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0;
|
pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user