GNOME Bugzilla – Bug 789700
gstvalue: Cast GST_MAKE_FOURCC arguments
Last modified: 2017-10-31 14:31:50 UTC
See commit
Created attachment 362613 [details] [review] gstvalue: Cast GST_MAKE_FOURCC arguments To make it explicit that we are dealing with uint32 targets Avoids erroneous runtime error: left shift of negative value -1
Comment on attachment 362613 [details] [review] gstvalue: Cast GST_MAKE_FOURCC arguments >+#define GST_MAKE_FOURCC(a,b,c,d) \ >+ ( (guint32)(a) | (guint32) ((b) << 8) | (guint32) ((c) << 16) | (guint32) ((d) << 24)) Is this really what you want, rather than e.g. (((guint32)(b)) << 8) etc. ? (i.e. cast go guint32 before shifting)
Created attachment 362614 [details] [review] gstvalue: Cast GST_MAKE_FOURCC arguments To make it explicit that we are dealing with uint32 targets Avoids erroneous runtime error: left shift of negative value -1
commit fb56ad6bee2366813f6be4f697579c06774b062d (HEAD -> master, origin/master, origin/HEAD) Author: Edward Hervey <edward@centricular.com> Date: Tue Oct 31 11:39:23 2017 +0100 gstvalue: Cast GST_MAKE_FOURCC arguments To make it explicit that we are dealing with uint32 targets Avoids erroneous runtime error: left shift of negative value -1 https://bugzilla.gnome.org/show_bug.cgi?id=789700