Commit 1b0e0578 authored by Haihao Xiang's avatar Haihao Xiang Committed by Mark Thompson

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: 's avatarHaihao Xiang <haihao.xiang@intel.com>
parent 65be65da
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment