From a72b1ea8261f093f0cdeebee9638f3d1b6367f37 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Wed, 20 Jan 2016 16:49:55 +0000 Subject: [PATCH] aacenc: mark LTP mode as experimental Too many crashes observed. Can't be helped until the autocorrelation function is massively checked for sanity. Signed-off-by: Rostislav Pehlivanov --- libavcodec/aacenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 688b131818..be3c66a994 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -989,6 +989,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) s->options.pns = 0; } + ERROR_IF(s->options.ltp && avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL, + "The LPT profile requires experimental compliance, add -strict -2 to enable!\n"); + if ((ret = dsp_init(avctx, s)) < 0) goto fail;