1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

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>
This commit is contained in:
Rostislav Pehlivanov 2015-08-22 08:50:41 +01:00
parent ae1b9c9754
commit 7adb6d5aab

View File

@ -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;