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
This commit is contained in:
Edward Hervey 2017-10-31 11:39:23 +01:00 committed by Edward Hervey
parent 41e35c334b
commit fb56ad6bee

View file

@ -42,7 +42,8 @@ G_BEGIN_DECLS
* ]|
*
*/
#define GST_MAKE_FOURCC(a,b,c,d) ((guint32)((a)|(b)<<8|(c)<<16|(d)<<24))
#define GST_MAKE_FOURCC(a,b,c,d) \
( (guint32)(a) | ((guint32) (b)) << 8 | ((guint32) (c)) << 16 | ((guint32) (d)) << 24 )
/**
* GST_STR_FOURCC: