Commit bf718bdf authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/crystalhd: allocate padding for extradata

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b06741d2
......@@ -419,7 +419,7 @@ static av_cold int init(AVCodecContext *avctx)
int dummy_int;
/* Back up the extradata so it can be restored at close time. */
priv->orig_extradata = av_malloc(avctx->extradata_size);
priv->orig_extradata = av_malloc(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!priv->orig_extradata) {
av_log(avctx, AV_LOG_ERROR,
"Failed to allocate copy of extradata\n");
......
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