From 739d6a78b7ea9f91fc82e364c72401e5465206a4 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 6 Jun 2013 15:58:03 +0000 Subject: [PATCH] alacenc: don't allocate unused avctx->coded_frame Signed-off-by: Paul B Mahol --- libavcodec/alacenc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index 4ee558c673..c41ad1a66d 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,