[FFmpeg-cvslog] alacenc: don't allocate unused avctx->coded_frame

Paul B Mahol git at videolan.org
Fri Jun 7 11:36:02 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jun  6 15:58:03 2013 +0000| [739d6a78b7ea9f91fc82e364c72401e5465206a4] | committer: Paul B Mahol

alacenc: don't allocate unused avctx->coded_frame

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

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

 libavcodec/alacenc.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 4ee558c..c41ad1a 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -483,7 +483,6 @@ static av_cold int alac_encode_close(AVCodecContext *avctx)
     ff_lpc_end(&s->lpc_ctx);
     av_freep(&avctx->extradata);
     avctx->extradata_size = 0;
-    av_freep(&avctx->coded_frame);
     return 0;
 }
 
@@ -579,12 +578,6 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
         goto error;
     }
 
-    avctx->coded_frame = avcodec_alloc_frame();
-    if (!avctx->coded_frame) {
-        ret = AVERROR(ENOMEM);
-        goto error;
-    }
-
     s->avctx = avctx;
 
     if ((ret = ff_lpc_init(&s->lpc_ctx, avctx->frame_size,



More information about the ffmpeg-cvslog mailing list