changeset 10211:337e5592f985 libavcodec

aacenc: Replace cbrt() with cbrtf() when the result is destined for float storage.
author alexc
date Mon, 21 Sep 2009 03:53:39 +0000
parents 47048ee7db4e
children 4e2db0d76fad
files aaccoder.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aaccoder.c	Mon Sep 21 03:50:59 2009 +0000
+++ b/aaccoder.c	Mon Sep 21 03:53:39 2009 +0000
@@ -184,7 +184,7 @@
                             curbits += 21;
                         } else {
                             int c = av_clip(quant(t, Q), 0, 8191);
-                            di = t - c*cbrt(c)*IQ;
+                            di = t - c*cbrtf(c)*IQ;
                             curbits += av_log2(c)*2 - 4 + 1;
                         }
                     } else {
@@ -299,7 +299,7 @@
                             curbits += 21;
                         } else {
                             int c = av_clip(quant(t, Q), 0, 8191);
-                            di = t - c*cbrt(c)*IQ;
+                            di = t - c*cbrtf(c)*IQ;
                             curbits += av_log2(c)*2 - 4 + 1;
                         }
                     } else {