Commit 127b70e4 authored by Michael Niedermayer's avatar Michael Niedermayer

ra144: factor division out

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7200fecd
......@@ -1566,8 +1566,9 @@ int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx)
if (!b)
b = -2;
b = 0x1000000 / b;
for (j=0; j <= i; j++)
bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * (0x1000000 / b)) >> 12;
bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;
if ((unsigned) bp1[i] + 0x1000 > 0x1fff)
return 1;
......
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