diff options
author | Christian Schaller <uraeus@gnome.org> | 2002-12-12 11:42:14 +0000 |
---|---|---|
committer | Christian Schaller <uraeus@gnome.org> | 2002-12-12 11:42:14 +0000 |
commit | 63fe3ba65b3329a81e1061543721f1068b19e85c (patch) | |
tree | 60c087aa86e5ab0e2732669d394f483b900e8159 | |
parent | 896d1c375b4518c3e0a98b52974ee77fb8006111 (diff) | |
download | gst-plugins-bad-63fe3ba65b3329a81e1061543721f1068b19e85c.tar.gz gst-plugins-bad-63fe3ba65b3329a81e1061543721f1068b19e85c.tar.bz2 gst-plugins-bad-63fe3ba65b3329a81e1061543721f1068b19e85c.zip |
commit patch from Nall for riffutil
Original commit message from CVS:
commit patch from Nall for riffutil
-rw-r--r-- | gst-libs/gst/riff/riffutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/riff/riffutil.c b/gst-libs/gst/riff/riffutil.c index 48c90e12..b363ddb8 100644 --- a/gst-libs/gst/riff/riffutil.c +++ b/gst-libs/gst/riff/riffutil.c @@ -27,8 +27,8 @@ gulong gst_riff_fourcc_to_id(gchar *fourcc) { g_return_val_if_fail(fourcc != NULL, 0); - return (fourcc[0] << 0) | (fourcc[1] << 8) | - (fourcc[2] << 16) | (fourcc[3] << 24); + return GUINT32_FROM_LE((gulong)(fourcc[0] << 0) | (fourcc[1] << 8) | + (fourcc[2] << 16) | (fourcc[3] << 24)); } gchar *gst_riff_id_to_fourcc(gulong id) { @@ -36,6 +36,7 @@ gchar *gst_riff_id_to_fourcc(gulong id) { g_return_val_if_fail(fourcc != NULL, NULL); + id = GUINT32_FROM_LE(id); fourcc[0] = (id >> 0) & 0xff; fourcc[1] = (id >> 8) & 0xff; fourcc[2] = (id >> 16) & 0xff; |