aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-10-20 21:12:30 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-10-23 11:13:35 +0200
commit1ec72c6c68dbc78bf4ebb6f06c13316dc488bdfa (patch)
treed0ded3278ae4c02113bc9beec28d90920993bfeb /libavcodec/libx264.c
parent5ea5a24eb70646a9061b85af407fcbb5dd4f89fd (diff)
downloadffmpeg-1ec72c6c68dbc78bf4ebb6f06c13316dc488bdfa.tar.gz
libx264: Make sure the extradata are padded
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index b9ec1500c9..bcbdf8453b 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -589,7 +589,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
int nnal, s, i;
s = x264_encoder_headers(x4->enc, &nal, &nnal);
- avctx->extradata = p = av_malloc(s);
+ avctx->extradata = p = av_mallocz(s + AV_INPUT_BUFFER_PADDING_SIZE);
if (!p)
return AVERROR(ENOMEM);