From 5441eb460cb4b52eaf4bc440146c5e458edbea05 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 May 2014 15:58:03 +0200 Subject: [PATCH] avcodec/movtextenc: allocate padding for extradata Signed-off-by: Michael Niedermayer --- libavcodec/movtextenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c index 9b0a6c5bce..5d91e94f75 100644 --- a/libavcodec/movtextenc.c +++ b/libavcodec/movtextenc.c @@ -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);