[FFmpeg-cvslog] avcodec/crystalhd: allocate padding for extradata

Michael Niedermayer git at videolan.org
Sun May 18 16:05:42 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 18 15:58:03 2014 +0200| [bf718bdf12bed40e0dac6d41e80eb076038fc501] | committer: Michael Niedermayer

avcodec/crystalhd: allocate padding for extradata

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf718bdf12bed40e0dac6d41e80eb076038fc501
---

 libavcodec/crystalhd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 12a8f8e..3f4502b 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");



More information about the ffmpeg-cvslog mailing list