[FFmpeg-cvslog] r19946 - trunk/libavcodec/aaccoder.c

alexc subversion
Mon Sep 21 05:53:39 CEST 2009


Author: alexc
Date: Mon Sep 21 05:53:39 2009
New Revision: 19946

Log:
aacenc: Replace cbrt() with cbrtf() when the result is destined for float
storage.

Modified:
   trunk/libavcodec/aaccoder.c

Modified: trunk/libavcodec/aaccoder.c
==============================================================================
--- trunk/libavcodec/aaccoder.c	Mon Sep 21 05:50:59 2009	(r19945)
+++ trunk/libavcodec/aaccoder.c	Mon Sep 21 05:53:39 2009	(r19946)
@@ -184,7 +184,7 @@ static float quantize_band_cost(struct A
                             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 @@ static void quantize_and_encode_band(str
                             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 {



More information about the ffmpeg-cvslog mailing list