Commit 6ac7c4e7 authored by michael's avatar michael

1 abs() less


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13810 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1ce44df0
......@@ -190,15 +190,16 @@ static int16_t g726_decode(G726Context* c, int16_t I)
Float11 f;
dq = inverse_quant(c, I);
if (I >> (c->tbls->bits - 1)) /* get the sign */
dq = -dq;
re_signal = c->se + dq;
/* Transition detect */
ylint = (c->yl >> 15);
ylfrac = (c->yl >> 10) & 0x1f;
thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint;
tr= (c->td == 1 && abs(dq) > ((3*thr2)>>2));
tr= (c->td == 1 && dq > ((3*thr2)>>2));
if (I >> (c->tbls->bits - 1)) /* get the sign */
dq = -dq;
re_signal = c->se + dq;
/* Update second order predictor coefficient A2 and A1 */
pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0;
......
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