mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-27 00:16:37 +00:00
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:
parent
41e35c334b
commit
fb56ad6bee
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
* GST_STR_FOURCC:
|
||||||
|
|
Loading…
Reference in a new issue