diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2018-05-04 22:41:07 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-05-07 21:32:47 +0100 |
commit | 1b0e0578c2ed1bf63e7c014906e02d654f286c0c (patch) | |
tree | 8b1322adece73b10f890a9822b3679a082feb791 | |
parent | 65be65da37eb543e7e79357f04e4cfc8b514d8df (diff) | |
download | ffmpeg-1b0e0578c2ed1bf63e7c014906e02d654f286c0c.tar.gz |
vaapi_encode_vp8: memset the the structure to 0
The structure has reserved bytes, it is required to set the reserved
bytes to 0 for future use.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
-rw-r--r-- | libavcodec/vaapi_encode_vp8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_vp8.c b/libavcodec/vaapi_encode_vp8.c index b4c5521d1f..a2e861a8d1 100644 --- a/libavcodec/vaapi_encode_vp8.c +++ b/libavcodec/vaapi_encode_vp8.c @@ -143,6 +143,8 @@ static int vaapi_encode_vp8_write_quant_table(AVCodecContext *avctx, *type = VAQMatrixBufferType; *data_len = sizeof(quant); + memset(&quant, 0, sizeof(quant)); + if (pic->type == PICTURE_TYPE_P) q = priv->q_index_p; else |