summaryrefslogtreecommitdiff
path: root/libavcodec/crystalhd.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-18 15:58:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-18 15:58:03 +0200
commitbf718bdf12bed40e0dac6d41e80eb076038fc501 (patch)
treedf853f798258274f255a8aa16e01a2966abd2a09 /libavcodec/crystalhd.c
parentb06741d26794fd5ef2cd4e6b390c5ba7347e6a4e (diff)
avcodec/crystalhd: allocate padding for extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/crystalhd.c')
-rw-r--r--libavcodec/crystalhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 12a8f8e02b..3f4502b3d0 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -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");