Commit 7adb6d5a authored by Rostislav Pehlivanov's avatar 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: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent ae1b9c97
...@@ -110,7 +110,7 @@ static av_always_inline float quantize_and_encode_band_cost_template( ...@@ -110,7 +110,7 @@ static av_always_inline float quantize_and_encode_band_cost_template(
} }
di = t - quantized; di = t - quantized;
if (out) if (out)
out[i+j] = copysignf(quantized, in[i+j]); out[i+j] = in[i+j] >= 0 ? quantized : -quantized;
if (vec[j] != 0.0f) if (vec[j] != 0.0f)
curbits++; curbits++;
rd += di*di; rd += di*di;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment