Commit 5ba811bd authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

aacenc_tns: fix coefficient compression condition

Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent a860adb4
...@@ -41,7 +41,7 @@ static inline int compress_coeffs(int *coef, int order, int c_bits) ...@@ -41,7 +41,7 @@ static inline int compress_coeffs(int *coef, int order, int c_bits)
const int shift_val = c_bits ? 8 : 4; const int shift_val = c_bits ? 8 : 4;
const int high_idx = c_bits ? 11 : 5; const int high_idx = c_bits ? 11 : 5;
for (i = 0; i < order; i++) for (i = 0; i < order; i++)
if (coef[i] < low_idx && coef[i] > high_idx) if (coef[i] < low_idx || coef[i] > high_idx)
res++; res++;
if (res == order) if (res == order)
for (i = 0; i < order; i++) for (i = 0; i < order; i++)
......
...@@ -172,7 +172,7 @@ fate-aac-tns-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re ...@@ -172,7 +172,7 @@ fate-aac-tns-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re
fate-aac-tns-encode: CMP = stddev fate-aac-tns-encode: CMP = stddev
fate-aac-tns-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav fate-aac-tns-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
fate-aac-tns-encode: CMP_SHIFT = -4096 fate-aac-tns-encode: CMP_SHIFT = -4096
fate-aac-tns-encode: CMP_TARGET = 648.80 fate-aac-tns-encode: CMP_TARGET = 650.28
fate-aac-tns-encode: FUZZ = 2.8 fate-aac-tns-encode: FUZZ = 2.8
fate-aac-tns-encode: SIZE_TOLERANCE = 3560 fate-aac-tns-encode: SIZE_TOLERANCE = 3560
......
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