summaryrefslogtreecommitdiff
path: root/libavcodec/alacenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-06 15:58:03 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-07 09:29:33 +0000
commit739d6a78b7ea9f91fc82e364c72401e5465206a4 (patch)
tree1226e7d941920811a41f5e1910f130c5df876dc9 /libavcodec/alacenc.c
parent379fcc4955d31c4057a973c926ec279bb0d53dde (diff)
downloadffmpeg-739d6a78b7ea9f91fc82e364c72401e5465206a4.tar.gz
alacenc: don't allocate unused avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/alacenc.c')
-rw-r--r--libavcodec/alacenc.c7
1 files changed, 0 insertions, 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,