summaryrefslogtreecommitdiff
path: root/libavcodec/libaacplus.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-16 08:44:56 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-16 08:44:56 +0000
commit97b2865aa27c1e50885338e594eff8af374fb41c (patch)
treef454a41a3b99a2e47f7605ec681fc649f6972934 /libavcodec/libaacplus.c
parent003bf337477fb73c8bfe529fb53f8d7c09a676b1 (diff)
libaacplus: remove FF_API_OLD_ENCODE_AUDIO cruft
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/libaacplus.c')
-rw-r--r--libavcodec/libaacplus.c8
1 files changed, 0 insertions, 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);