Browse Source

avcodec/crystalhd: allocate padding for extradata

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
bf718bdf12
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/crystalhd.c

+ 1
- 1
libavcodec/crystalhd.c View File

@@ -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");


Loading…
Cancel
Save