diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-07-12 21:36:41 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-07-12 21:36:41 +0000 |
commit | 1ac6da39889159b2d9de5d782dff3cf06b9d5d50 (patch) | |
tree | b34487a93fca56c7173c3110709f8c62e5b1a379 /libavcodec/aacdec.c | |
parent | 531cfe6e851ce5d8ea034bef061253d4debbfa16 (diff) | |
download | ffmpeg-1ac6da39889159b2d9de5d782dff3cf06b9d5d50.tar.gz |
aacdec: Eliminate the use of doubles in the MAIN predictor.
Originally committed as revision 24226 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 3159196048..a302876176 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -1251,9 +1251,9 @@ static av_always_inline void predict(AACContext *ac, PredictorState *ps, float * e1 = e0 - k1 * ps->r0; ps->cor1 = flt16_trunc(alpha * ps->cor1 + ps->r1 * e1); - ps->var1 = flt16_trunc(alpha * ps->var1 + 0.5 * (ps->r1 * ps->r1 + e1 * e1)); + ps->var1 = flt16_trunc(alpha * ps->var1 + 0.5f * (ps->r1 * ps->r1 + e1 * e1)); ps->cor0 = flt16_trunc(alpha * ps->cor0 + ps->r0 * e0); - ps->var0 = flt16_trunc(alpha * ps->var0 + 0.5 * (ps->r0 * ps->r0 + e0 * e0)); + ps->var0 = flt16_trunc(alpha * ps->var0 + 0.5f * (ps->r0 * ps->r0 + e0 * e0)); ps->r1 = flt16_trunc(a * (ps->r0 - k1 * e0)); ps->r0 = flt16_trunc(a * e0); |