diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-23 08:20:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-09 08:36:40 +0100 |
commit | f073b1500e3b53835034b7421db0a1cf5bea05a0 (patch) | |
tree | 34c6a8ff1bc639596c56c9419afb7c83bad22034 /libavcodec/ac3enc.c | |
parent | 5d606863c353553488e88dfd89ea5571268d9dca (diff) | |
download | ffmpeg-f073b1500e3b53835034b7421db0a1cf5bea05a0.tar.gz |
lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruft
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index b3be2dbf10..df86f0bd94 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -2052,9 +2052,6 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx) s->mdct_end(s); -#if FF_API_OLD_ENCODE_AUDIO - av_freep(&avctx->coded_frame); -#endif return 0; } @@ -2484,14 +2481,6 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx) if (ret) goto init_fail; -#if FF_API_OLD_ENCODE_AUDIO - avctx->coded_frame= avcodec_alloc_frame(); - if (!avctx->coded_frame) { - ret = AVERROR(ENOMEM); - goto init_fail; - } -#endif - ff_dsputil_init(&s->dsp, avctx); avpriv_float_dsp_init(&s->fdsp, avctx->flags & CODEC_FLAG_BITEXACT); ff_ac3dsp_init(&s->ac3dsp, avctx->flags & CODEC_FLAG_BITEXACT); |