mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue