diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-06-06 15:58:03 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-06-07 09:29:33 +0000 |
commit | 739d6a78b7ea9f91fc82e364c72401e5465206a4 (patch) | |
tree | 1226e7d941920811a41f5e1910f130c5df876dc9 | |
parent | 379fcc4955d31c4057a973c926ec279bb0d53dde (diff) | |
download | ffmpeg-739d6a78b7ea9f91fc82e364c72401e5465206a4.tar.gz |
alacenc: don't allocate unused avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/alacenc.c | 7 |
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, |