Skip to content

Commit

Permalink
avcodec/ffv1enc: allocate padding for extradata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed May 18, 2014
1 parent bf718bd commit 947ed8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/ffv1enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static int write_extradata(FFV1Context *f)

f->avctx->extradata_size = 10000 + 4 +
(11 * 11 * 5 * 5 * 5 + 11 * 11 * 11) * 32;
f->avctx->extradata = av_malloc(f->avctx->extradata_size);
f->avctx->extradata = av_malloc(f->avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!f->avctx->extradata)
return AVERROR(ENOMEM);
ff_init_range_encoder(c, f->avctx->extradata, f->avctx->extradata_size);
Expand Down

0 comments on commit 947ed8f

Please sign in to comment.