Add memset to initialize value for VAEncSliceParameterBufferJPEG

https://bugzilla.gnome.org/show_bug.cgi?id=762850
This commit is contained in:
Lim Siew Hoon 2016-02-29 11:55:27 +02:00 committed by Sreerenj Balachandran
parent 6725cbd2b3
commit 0bae36bb88

View file

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