Mercurial > libavcodec.hg
comparison g726.c @ 7074:6f70dc804076 libavcodec
Do not shift F[I] twice, it is also clearer and smaller now.
author | michael |
---|---|
date | Thu, 19 Jun 2008 11:04:31 +0000 |
parents | 33dc1d1705f0 |
children | 85ab7655ad4d |
comparison
equal
deleted
inserted
replaced
7073:33dc1d1705f0 | 7074:6f70dc804076 |
---|---|
233 c->dq[0].sign = I_sig; /* Isn't it crazy ?!?! */ | 233 c->dq[0].sign = I_sig; /* Isn't it crazy ?!?! */ |
234 | 234 |
235 c->td = c->a[1] < -11776; | 235 c->td = c->a[1] < -11776; |
236 | 236 |
237 /* Update Ap */ | 237 /* Update Ap */ |
238 c->dms += ((c->tbls.F[I]<<9) - c->dms) >> 5; | 238 c->dms += (c->tbls.F[I]<<4) + ((- c->dms) >> 5); |
239 c->dml += ((c->tbls.F[I]<<11) - c->dml) >> 7; | 239 c->dml += (c->tbls.F[I]<<4) + ((- c->dml) >> 7); |
240 if (tr) | 240 if (tr) |
241 c->ap = 256; | 241 c->ap = 256; |
242 else { | 242 else { |
243 c->ap += (-c->ap) >> 4; | 243 c->ap += (-c->ap) >> 4; |
244 if (c->y <= 1535 || c->td || abs((c->dms << 2) - c->dml) >= (c->dml >> 3)) | 244 if (c->y <= 1535 || c->td || abs((c->dms << 2) - c->dml) >= (c->dml >> 3)) |