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>
This commit is contained in:
parent
640e524ff6
commit
5d22ac488b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue