[FFmpeg-devel] [PATCH 1/3] alacenc: don't allocate unused avctx->coded_frame
Paul B Mahol
onemda at gmail.com
Thu Jun 6 18:07:43 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
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,
--
1.7.11.2
More information about the ffmpeg-devel
mailing list