]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/crystalhd.c
Merge commit 'f76e3669bb350ca6df150244f3d28d7dc5599f01'
[ffmpeg] / libavcodec / crystalhd.c
index 12a8f8e02bc16bbe25783c0dcc1bb6f4bae7514b..3f4502b3d07d75da088353d2f18f8bc879a37d12 100644 (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");