summaryrefslogtreecommitdiffstats
path: root/gst/mpeg1videoparse
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-04-07 18:43:25 +0000
committerDavid Schleef <ds@schleef.org>2003-04-07 18:43:25 +0000
commitbb23b9a3a243290b6feabbe8c745fef97a06ea33 (patch)
tree75f1ca4b0ce5d0b6aa9a81e28b3ee79602c12764 /gst/mpeg1videoparse
parent6b32ca5b1a9e4e715dbcb17416f97f9c0a592146 (diff)
downloadgst-plugins-bad-bb23b9a3a243290b6feabbe8c745fef97a06ea33.tar.gz
gst-plugins-bad-bb23b9a3a243290b6feabbe8c745fef97a06ea33.tar.bz2
gst-plugins-bad-bb23b9a3a243290b6feabbe8c745fef97a06ea33.zip
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.
Diffstat (limited to 'gst/mpeg1videoparse')
-rw-r--r--gst/mpeg1videoparse/gstmp1videoparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/mpeg1videoparse/gstmp1videoparse.c b/gst/mpeg1videoparse/gstmp1videoparse.c
index b1a2610f..da3e7059 100644
--- a/gst/mpeg1videoparse/gstmp1videoparse.c
+++ b/gst/mpeg1videoparse/gstmp1videoparse.c
@@ -241,7 +241,7 @@ gst_mp1videoparse_real_chain (Mp1VideoParse *mp1videoparse, GstBuffer *buf, GstP
gint sync_state;
gboolean have_sync;
guchar sync_byte;
- gulong head;
+ guint32 head;
gint sync_pos;
guint64 time_stamp;
GstBuffer *temp;
@@ -278,9 +278,9 @@ gst_mp1videoparse_real_chain (Mp1VideoParse *mp1videoparse, GstBuffer *buf, GstP
GST_DEBUG (0,"mp1videoparse: received buffer of %ld bytes %" G_GINT64_FORMAT,size, GST_BUFFER_TIMESTAMP(buf));
- head = GULONG_FROM_BE(*((gulong *)data));
+ head = GUINT32_FROM_BE(*((guint32 *)data));
- GST_DEBUG (0,"mp1videoparse: head is %08lx", head);
+ GST_DEBUG (0,"mp1videoparse: head is %08x", (unsigned int)head);
if (!mp1videoparse_valid_sync(head) || mp1videoparse->need_resync) {
sync_pos = mp1videoparse_find_next_gop(mp1videoparse, mp1videoparse->partialbuf);