Commit 6dbcecd7 authored by Paul B Mahol's avatar Paul B Mahol

lclenc: allocate FF_INPUT_BUFFER_PADDING_SIZE for extradata

Also check return value.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 573018c6
......@@ -137,7 +137,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
av_assert0(avctx->width && avctx->height);
avctx->extradata= av_mallocz(8);
avctx->extradata = av_mallocz(8 + FF_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata)
return AVERROR(ENOMEM);
avctx->coded_frame= &c->pic;
c->compression = avctx->compression_level == FF_COMPRESSION_DEFAULT ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment