[FFmpeg-cvslog] libaacplus: remove FF_API_OLD_ENCODE_AUDIO cruft

Paul B Mahol git at videolan.org
Tue Apr 16 10:47:21 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Apr 16 08:44:56 2013 +0000| [97b2865aa27c1e50885338e594eff8af374fb41c] | committer: Paul B Mahol

libaacplus: remove FF_API_OLD_ENCODE_AUDIO cruft

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97b2865aa27c1e50885338e594eff8af374fb41c
---

 libavcodec/libaacplus.c |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/libavcodec/libaacplus.c b/libavcodec/libaacplus.c
index 05c9e38..2e09c9a 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);



More information about the ffmpeg-cvslog mailing list