mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
libaacplus: remove FF_API_OLD_ENCODE_AUDIO cruft
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
003bf33747
commit
97b2865aa2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user