[SCM] libav/experimental: aacenc: Replace cbrt() with cbrtf() when the result is destined for float storage.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:51:34 UTC 2013


The following commit has been merged in the experimental branch:
commit 9d4f6f10aedff4722e726811dd31209fc8873f15
Author: Alex Converse <alex.converse at gmail.com>
Date:   Mon Sep 21 03:53:39 2009 +0000

    aacenc: Replace cbrt() with cbrtf() when the result is destined for float
    storage.
    
    Originally committed as revision 19946 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index e5a7a8e..b4c1e8e 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -184,7 +184,7 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in,
                             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(struct AACEncContext *s, PutBitContext *pb,
                             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 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list