From f073b1500e3b53835034b7421db0a1cf5bea05a0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 23 Feb 2013 08:20:12 +0100 Subject: lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruft --- libavcodec/libilbc.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libavcodec/libilbc.c') diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c index d47227cada..714fdb0210 100644 --- a/libavcodec/libilbc.c +++ b/libavcodec/libilbc.c @@ -153,23 +153,10 @@ static av_cold int ilbc_encode_init(AVCodecContext *avctx) avctx->block_align = s->encoder.no_of_bytes; avctx->frame_size = s->encoder.blockl; -#if FF_API_OLD_ENCODE_AUDIO - avctx->coded_frame = avcodec_alloc_frame(); - if (!avctx->coded_frame) - return AVERROR(ENOMEM); -#endif return 0; } -static av_cold int ilbc_encode_close(AVCodecContext *avctx) -{ -#if FF_API_OLD_ENCODE_AUDIO - av_freep(&avctx->coded_frame); -#endif - return 0; -} - static int ilbc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { @@ -200,7 +187,6 @@ AVCodec ff_libilbc_encoder = { .priv_data_size = sizeof(ILBCEncContext), .init = ilbc_encode_init, .encode2 = ilbc_encode_frame, - .close = ilbc_encode_close, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("iLBC (Internet Low Bitrate Codec)"), -- cgit v1.2.3