Browse code

aacenc_ltp: disable LTP with high lambda values

Makes no sense to enable for high bitrates, the coder does well enough.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>

Rostislav Pehlivanov authored on 2015/12/08 22:24:48
Showing 2 changed files
... ...
@@ -173,7 +173,7 @@ void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
173 173
         return;
174 174
     }
175 175
 
176
-    if (!sce->ics.ltp.lag)
176
+    if (!sce->ics.ltp.lag || s->lambda > 120.0f)
177 177
         return;
178 178
 
179 179
     for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) {
... ...
@@ -209,7 +209,7 @@ fate-aac-ltp-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re
209 209
 fate-aac-ltp-encode: CMP = stddev
210 210
 fate-aac-ltp-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
211 211
 fate-aac-ltp-encode: CMP_SHIFT = -4096
212
-fate-aac-ltp-encode: CMP_TARGET = 1273
212
+fate-aac-ltp-encode: CMP_TARGET = 1270
213 213
 fate-aac-ltp-encode: SIZE_TOLERANCE = 3560
214 214
 fate-aac-ltp-encode: FUZZ = 17
215 215