diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-18 15:58:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-18 15:58:41 +0200 |
commit | 947ed8f292f5d007dcb589c36a751466b3480873 (patch) | |
tree | 34a57edddf95a3707b436ddb7e06c01455183534 /libavcodec/ffv1enc.c | |
parent | bf718bdf12bed40e0dac6d41e80eb076038fc501 (diff) | |
download | ffmpeg-947ed8f292f5d007dcb589c36a751466b3480873.tar.gz |
avcodec/ffv1enc: allocate padding for extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r-- | libavcodec/ffv1enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index c7479e649f..b63ed429d9 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -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); |