You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Mark Thompson
parent
65be65da37
commit
1b0e0578c2
@@ -143,6 +143,8 @@ static int vaapi_encode_vp8_write_quant_table(AVCodecContext *avctx,
|
|||||||
*type = VAQMatrixBufferType;
|
*type = VAQMatrixBufferType;
|
||||||
*data_len = sizeof(quant);
|
*data_len = sizeof(quant);
|
||||||
|
|
||||||
|
memset(&quant, 0, sizeof(quant));
|
||||||
|
|
||||||
if (pic->type == PICTURE_TYPE_P)
|
if (pic->type == PICTURE_TYPE_P)
|
||||||
q = priv->q_index_p;
|
q = priv->q_index_p;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user