mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-30 05:06:16 +02:00
avcodec/movtextenc: allocate padding for extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
947ed8f292
commit
5441eb460c
@ -75,7 +75,7 @@ static av_cold int mov_text_encode_init(AVCodecContext *avctx)
|
|||||||
MovTextContext *s = avctx->priv_data;
|
MovTextContext *s = avctx->priv_data;
|
||||||
|
|
||||||
avctx->extradata_size = sizeof text_sample_entry;
|
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)
|
if (!avctx->extradata)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user