[FFmpeg-cvslog] aacenc_ltp: disable LTP with high lambda values
Rostislav Pehlivanov
git at videolan.org
Tue Dec 8 14:32:34 CET 2015
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Tue Dec 8 13:24:48 2015 +0000| [4c5136a48ba8beb7737a0b67d4d4f64add1263a9] | committer: Rostislav Pehlivanov
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c5136a48ba8beb7737a0b67d4d4f64add1263a9
---
libavcodec/aacenc_ltp.c | 2 +-
tests/fate/aac.mak | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/aacenc_ltp.c b/libavcodec/aacenc_ltp.c
index 1917ee9..b9d43b4 100644
--- a/libavcodec/aacenc_ltp.c
+++ b/libavcodec/aacenc_ltp.c
@@ -173,7 +173,7 @@ void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
return;
}
- if (!sce->ics.ltp.lag)
+ if (!sce->ics.ltp.lag || s->lambda > 120.0f)
return;
for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) {
diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak
index 816fbf0..4e55b76 100644
--- a/tests/fate/aac.mak
+++ b/tests/fate/aac.mak
@@ -209,7 +209,7 @@ fate-aac-ltp-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re
fate-aac-ltp-encode: CMP = stddev
fate-aac-ltp-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
fate-aac-ltp-encode: CMP_SHIFT = -4096
-fate-aac-ltp-encode: CMP_TARGET = 1273
+fate-aac-ltp-encode: CMP_TARGET = 1270
fate-aac-ltp-encode: SIZE_TOLERANCE = 3560
fate-aac-ltp-encode: FUZZ = 17
More information about the ffmpeg-cvslog
mailing list