Browse Source

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>
tags/n4.1
Haihao Xiang Mark Thompson 7 years ago
parent
commit
1b0e0578c2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/vaapi_encode_vp8.c

+ 2
- 0
libavcodec/vaapi_encode_vp8.c View File

@@ -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


Loading…
Cancel
Save