diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-15 00:36:31 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-15 00:44:08 +0400 |
commit | 5d22ac488b4a424fa8e71f01152b43070f3ef1be (patch) | |
tree | b4434eb265e36230ffa79a5491eee0547107e831 /libavcodec/libx264.c | |
parent | 640e524ff6e1693c9166f1a6f259f5e3523b663e (diff) |
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/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
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; |