aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-14 22:36:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-14 22:44:08 +0200
commit5d22ac488b4a424fa8e71f01152b43070f3ef1be (patch)
treeb4434eb265e36230ffa79a5491eee0547107e831 /libavcodec
parent640e524ff6e1693c9166f1a6f259f5e3523b663e (diff)
downloadffmpeg-5d22ac488b4a424fa8e71f01152b43070f3ef1be.tar.gz
libx264: zero x264_picture before use.
This prevents use of uninitialized memory by ffmpeg later (i_qpplus1) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libx264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index a1842f43ab..51c28a4d90 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -155,7 +155,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
X264Context *x4 = ctx->priv_data;
x264_nal_t *nal;
int nnal, i, ret;
- x264_picture_t pic_out;
+ x264_picture_t pic_out = {0};
x264_picture_init( &x4->pic );
x4->pic.img.i_csp = x4->params.i_csp;