1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

aacenc_tns: fix coefficient compression condition

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2015-09-16 17:48:02 +01:00
parent a860adb49c
commit 5ba811bdf0
2 changed files with 2 additions and 2 deletions

View File

@ -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 high_idx = c_bits ? 11 : 5;
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++;
if (res == order)
for (i = 0; i < order; i++)

View File

@ -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: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
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: SIZE_TOLERANCE = 3560