Add memset to initialize value for VAEncSliceParameterBufferJPEG
https://bugzilla.gnome.org/show_bug.cgi?id=762850
This commit is contained in:
parent
6725cbd2b3
commit
0bae36bb88
@ -393,6 +393,8 @@ fill_slices (GstVaapiEncoderJpeg * encoder, GstVaapiEncPicture * picture)
|
||||
g_assert (slice && slice->param_id != VA_INVALID_ID);
|
||||
slice_param = slice->param;
|
||||
|
||||
memset (slice_param, 0, sizeof (VAEncSliceParameterBufferJPEG));
|
||||
|
||||
slice_param->restart_interval = 0;
|
||||
slice_param->num_components = pic_param->num_components;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user