From 22c2af5de190560dd29036a0a33d15b1ba4d0b38 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 13 May 2003 23:15:46 +0000 Subject: [PATCH] Fix macro GST_FOURCC_ARGS - it assumed big endian ints Original commit message from CVS: Fix macro GST_FOURCC_ARGS - it assumed big endian ints --- gst/gstprops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/gstprops.h b/gst/gstprops.h index e041961..bf213b5 100644 --- a/gst/gstprops.h +++ b/gst/gstprops.h @@ -63,10 +63,10 @@ typedef enum { #define GST_FOURCC_FORMAT "%c%c%c%c" #define GST_FOURCC_ARGS(fourcc) \ - ((GUINT32_FROM_LE(fourcc)>>24)&0xff), \ - ((GUINT32_FROM_LE(fourcc)>>16)&0xff), \ - ((GUINT32_FROM_LE(fourcc)>>8)&0xff), \ - (GUINT32_FROM_LE(fourcc)&0xff) + ((gchar) ((fourcc) &0xff)), \ + ((gchar) (((fourcc)>>8 )&0xff)), \ + ((gchar) (((fourcc)>>16)&0xff)), \ + ((gchar) (((fourcc)>>24)&0xff)) #ifdef G_HAVE_ISO_VARARGS # define GST_PROPS_LIST(...) GST_PROPS_LIST_TYPE,__VA_ARGS__,NULL -- 2.7.4