[FFmpeg-cvslog] r24226 - trunk/libavcodec/aacdec.c
alexc
subversion
Mon Jul 12 23:36:41 CEST 2010
Author: alexc
Date: Mon Jul 12 23:36:41 2010
New Revision: 24226
Log:
aacdec: Eliminate the use of doubles in the MAIN predictor.
Modified:
trunk/libavcodec/aacdec.c
Modified: trunk/libavcodec/aacdec.c
==============================================================================
--- trunk/libavcodec/aacdec.c Mon Jul 12 23:36:10 2010 (r24225)
+++ trunk/libavcodec/aacdec.c Mon Jul 12 23:36:41 2010 (r24226)
@@ -1251,9 +1251,9 @@ static av_always_inline void predict(AAC
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);
More information about the ffmpeg-cvslog
mailing list