Commit 5441eb46 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/movtextenc: allocate padding for extradata

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 947ed8f2
......@@ -75,7 +75,7 @@ static av_cold int mov_text_encode_init(AVCodecContext *avctx)
MovTextContext *s = avctx->priv_data;
avctx->extradata_size = sizeof text_sample_entry;
avctx->extradata = av_mallocz(avctx->extradata_size);
avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata)
return AVERROR(ENOMEM);
......
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