summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 18:43:09 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 18:43:09 +0100
commitb47a1e5c5f585da714b0361a3077b9ded46c8c54 (patch)
treef4720ab04e77fce485b0f08b0460047642039b28 /libavcodec/aacenc.c
parent23e786be61c1f83ffaf3acfc1a0a63c3fbcc7c11 (diff)
aacenc: create and initialize an LTP context
This commit only creates and initializes an LTP context which is needed for upcoming commits (TNS). Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 5e3308235a..e5730d4078 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -676,6 +676,7 @@ static av_cold int aac_encode_end(AVCodecContext *avctx)
ff_mdct_end(&s->mdct1024);
ff_mdct_end(&s->mdct128);
ff_psy_end(&s->psy);
+ ff_lpc_end(&s->lpc);
if (s->psypp)
ff_psy_preprocess_end(s->psypp);
av_freep(&s->buffer.samples);
@@ -775,6 +776,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
goto fail;
s->psypp = ff_psy_preprocess_init(avctx);
s->coder = &ff_aac_coders[s->options.aac_coder];
+ ff_lpc_init(&s->lpc, avctx->frame_size, TNS_MAX_ORDER, FF_LPC_TYPE_LEVINSON);
if (HAVE_MIPSDSPR1)
ff_aac_coder_init_mips(s);