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:59:03 +0200 |
commit | 5441eb460cb4b52eaf4bc440146c5e458edbea05 (patch) | |
tree | 2875f68ec492c1ae9a1c2322c6e1fa41cb0dde2c /libavcodec/movtextenc.c | |
parent | 947ed8f292f5d007dcb589c36a751466b3480873 (diff) | |
download | ffmpeg-5441eb460cb4b52eaf4bc440146c5e458edbea05.tar.gz |
avcodec/movtextenc: allocate padding for extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/movtextenc.c')
-rw-r--r-- | libavcodec/movtextenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |