GNOME Bugzilla – Bug 780947
encoder: vp9: doesn't compile with gcc 7
Last modified: 2017-04-06 09:20:14 UTC
../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c: In function ‘gst_vaapi_encoder_vp9_init’: ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c:443:3: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] memset (encoder->ref_list, 0, G_N_ELEMENTS (encoder->ref_list)); ^~~~~~
Created attachment 349316 [details] [review] [PATCH] encoder: vp9: Fix initialization of ref_list gcc 7.0.1 gives a memset-elt-size warning in gst_vaapi_encoder_vp9_init: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
In master * 123672a9 libs: encoder: vp9: Fix initialization of ref_list
In 1.10 * 2af9bc6c libs: encoder: vp9: Fix initialization of ref_list