alacenc: don't allocate unused avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
379fcc4955
commit
739d6a78b7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user