diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-08-22 08:50:41 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-08-22 08:50:41 +0100 |
commit | 7adb6d5aab33bf0bc4efebeef4b188016f812086 (patch) | |
tree | 1cad2490933e2153ba42e02f7c57a636f1e527ec | |
parent | ae1b9c975409e99a810c3176a45d3fe171d7e56f (diff) | |
download | ffmpeg-7adb6d5aab33bf0bc4efebeef4b188016f812086.tar.gz |
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 <atomnuker@gmail.com>
-rw-r--r-- | libavcodec/aacenc_quantization.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc_quantization.h b/libavcodec/aacenc_quantization.h index 64093b8d66..b514954e4d 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; |