From 97b2865aa27c1e50885338e594eff8af374fb41c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 16 Apr 2013 08:44:56 +0000 Subject: [PATCH] libaacplus: remove FF_API_OLD_ENCODE_AUDIO cruft Signed-off-by: Paul B Mahol --- libavcodec/libaacplus.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libavcodec/libaacplus.c b/libavcodec/libaacplus.c index 05c9e389d1..2e09c9a261 100644 --- a/libavcodec/libaacplus.c +++ b/libavcodec/libaacplus.c @@ -74,11 +74,6 @@ static av_cold int aacPlus_encode_init(AVCodecContext *avctx) avctx->frame_size = s->samples_input / avctx->channels; -#if FF_API_OLD_ENCODE_AUDIO - avctx->coded_frame= avcodec_alloc_frame(); - avctx->coded_frame->key_frame= 1; -#endif - /* Set decoder specific info */ avctx->extradata_size = 0; if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) { @@ -118,9 +113,6 @@ static av_cold int aacPlus_encode_close(AVCodecContext *avctx) { aacPlusAudioContext *s = avctx->priv_data; -#if FF_API_OLD_ENCODE_AUDIO - av_freep(&avctx->coded_frame); -#endif av_freep(&avctx->extradata); aacplusEncClose(s->aacplus_handle);