diff options
author | David Schleef <ds@schleef.org> | 2003-04-07 18:43:20 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-04-07 18:43:20 +0000 |
commit | af874cb250bd217c7417f3c834bd578146c66a3b (patch) | |
tree | 5e86d5357e88fd4c5abfc55585f0dc2dd884d2f2 | |
parent | a1fa51068b3835690c3234061dd32f9d07a954d1 (diff) |
Fix a bunch of endianness conversions that were done as long instead of int32. Should go into 0.6.1.
Original commit message from CVS:
Fix a bunch of endianness conversions that were done as long instead of
int32. Should go into 0.6.1.
-rw-r--r-- | ext/dv/gstdvdec.c | 2 | ||||
-rw-r--r-- | ext/flac/gstflac.c | 2 | ||||
-rw-r--r-- | gst/auparse/gstauparse.c | 26 |
3 files changed, 15 insertions, 15 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index dc51c2e3..15aeadda 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -144,7 +144,7 @@ GST_PAD_TEMPLATE_FACTORY ( audio_src_temp, static GstCaps* dv_type_find (GstBuffer *buf, gpointer private) { - gulong head = GULONG_FROM_BE(*((gulong *)GST_BUFFER_DATA(buf))); + guint32 head = GUINT32_FROM_BE(*((guint32 *)GST_BUFFER_DATA(buf))); GstCaps *new = NULL; /* check for DIF and DV flag */ diff --git a/ext/flac/gstflac.c b/ext/flac/gstflac.c index 6614f865..e955c2cc 100644 --- a/ext/flac/gstflac.c +++ b/ext/flac/gstflac.c @@ -70,7 +70,7 @@ static GstTypeDefinition flacdefinition = { static GstCaps* flac_type_find (GstBuffer *buf, gpointer private) { - gulong head = GULONG_FROM_BE (*((gulong *)GST_BUFFER_DATA (buf))); + guint32 head = GUINT32_FROM_BE (*((guint32 *)GST_BUFFER_DATA (buf))); if (head != 0x664C6143) return NULL; diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index 7be558b3..5fdabddb 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -191,37 +191,37 @@ gst_auparse_chain (GstPad *pad, GstBuffer *buf) /* if we haven't seen any data yet... */ if (auparse->size == 0) { GstBuffer *newbuf; - gulong *head = (gulong *)data; + guint32 *head = (guint32 *)data; /* normal format is big endian (au is a Sparc format) */ - if (GULONG_FROM_BE (*head) == 0x2e736e64) { + if (GUINT32_FROM_BE (*head) == 0x2e736e64) { head++; auparse->le = 0; - auparse->offset = GULONG_FROM_BE (*head); + auparse->offset = GUINT32_FROM_BE (*head); head++; - auparse->size = GULONG_FROM_BE (*head); + auparse->size = GUINT32_FROM_BE (*head); head++; - auparse->encoding = GULONG_FROM_BE (*head); + auparse->encoding = GUINT32_FROM_BE (*head); head++; - auparse->frequency = GULONG_FROM_BE (*head); + auparse->frequency = GUINT32_FROM_BE (*head); head++; - auparse->channels = GULONG_FROM_BE (*head); + auparse->channels = GUINT32_FROM_BE (*head); head++; /* but I wouldn't be surprised by a little endian version */ - } else if (GULONG_FROM_LE (head) == 0x2e736e64) { + } else if (GUINT32_FROM_LE (head) == 0x2e736e64) { auparse->le = 1; head++; auparse->le = 0; - auparse->offset = GULONG_FROM_LE (*head); + auparse->offset = GUINT32_FROM_LE (*head); head++; - auparse->size = GULONG_FROM_LE (*head); + auparse->size = GUINT32_FROM_LE (*head); head++; - auparse->encoding = GULONG_FROM_LE (*head); + auparse->encoding = GUINT32_FROM_LE (*head); head++; - auparse->frequency = GULONG_FROM_LE (*head); + auparse->frequency = GUINT32_FROM_LE (*head); head++; - auparse->channels = GULONG_FROM_LE (*head); + auparse->channels = GUINT32_FROM_LE (*head); head++; } else { |