Browse Source

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>
tags/n2.8
Rostislav Pehlivanov 10 years ago
parent
commit
7adb6d5aab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aacenc_quantization.h

+ 1
- 1
libavcodec/aacenc_quantization.h 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;


Loading…
Cancel
Save