mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-29 20:56:12 +02:00
avcodec/crystalhd: allocate padding for extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b06741d267
commit
bf718bdf12
@ -419,7 +419,7 @@ static av_cold int init(AVCodecContext *avctx)
|
|||||||
int dummy_int;
|
int dummy_int;
|
||||||
|
|
||||||
/* Back up the extradata so it can be restored at close time. */
|
/* 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) {
|
if (!priv->orig_extradata) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Failed to allocate copy of extradata\n");
|
"Failed to allocate copy of extradata\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user