changeset 12155:7f8b11d9c831 libavcodec

aacdec: Eliminate the use of doubles in the MAIN predictor.
author alexc
date Mon, 12 Jul 2010 21:36:41 +0000
parents 8a50de6cf3f1
children b1c9654b8d68
files aacdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aacdec.c	Mon Jul 12 21:36:10 2010 +0000
+++ b/aacdec.c	Mon Jul 12 21:36:41 2010 +0000
@@ -1251,9 +1251,9 @@
     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);