diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-14 22:36:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-14 22:44:08 +0200 |
commit | 5d22ac488b4a424fa8e71f01152b43070f3ef1be (patch) | |
tree | b4434eb265e36230ffa79a5491eee0547107e831 | |
parent | 640e524ff6e1693c9166f1a6f259f5e3523b663e (diff) | |
download | ffmpeg-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>
-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; |