After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780947 - encoder: vp9: doesn't compile with gcc 7
encoder: vp9: doesn't compile with gcc 7
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
unspecified
Other Linux
: Normal normal
: 1.10.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-05 18:30 UTC by Scott D Phillips
Modified: 2017-04-06 09:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] encoder: vp9: Fix initialization of ref_list (1.18 KB, patch)
2017-04-05 18:31 UTC, Scott D Phillips
committed Details | Review

Description Scott D Phillips 2017-04-05 18:30:10 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));
   ^~~~~~
Comment 1 Scott D Phillips 2017-04-05 18:31:22 UTC
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]
Comment 2 Víctor Manuel Jáquez Leal 2017-04-06 09:19:54 UTC
In master

* 123672a9 libs: encoder: vp9: Fix initialization of ref_list
Comment 3 Víctor Manuel Jáquez Leal 2017-04-06 09:20:14 UTC
In 1.10

* 2af9bc6c libs: encoder: vp9: Fix initialization of ref_list