ffmpeg | branch: master | Rostislav Pehlivanov <[email protected]> | Sat Aug 
22 08:50:41 2015 +0100| [7adb6d5aab33bf0bc4efebeef4b188016f812086] | committer: 
Rostislav Pehlivanov

aacenc_quantization: replace copysign() with a ternary operator

This commit removes the last thing a Windows environment can
complain about the AAC encoder code. Leftover from an old revision.

Signed-off-by: Rostislav Pehlivanov <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7adb6d5aab33bf0bc4efebeef4b188016f812086
---

 libavcodec/aacenc_quantization.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacenc_quantization.h b/libavcodec/aacenc_quantization.h
index 64093b8..b514954 100644
--- a/libavcodec/aacenc_quantization.h
+++ b/libavcodec/aacenc_quantization.h
@@ -110,7 +110,7 @@ static av_always_inline float 
quantize_and_encode_band_cost_template(
                 }
                 di = t - quantized;
                 if (out)
-                    out[i+j] = copysignf(quantized, in[i+j]);
+                    out[i+j] = in[i+j] >= 0 ? quantized : -quantized;
                 if (vec[j] != 0.0f)
                     curbits++;
                 rd += di*di;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to