[gst-devel] bug in gstmpegdemux.c?

pulq.ustc pulq.ustc at gmail.com
Thu Jan 7 09:47:59 CET 2010


Hi folks,

Below is code snippet from gstmpegdemux.c:
...
scr1 = GUINT32_FROM_BE (*(guint32 *) data);
scr2 = GUINT32_FROM_BE (*(guint32 *) (data + 4));
...

It doesn't work on ARM CPU due to the int*'s alignment.
Could we just change above code to use GST_READ_UINT32_BE(data)  instead?

Thanks!
-- 
()   ASCII Ribbon Campaign
/\   Keep it simple!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100107/7a352424/attachment.htm>


More information about the gstreamer-devel mailing list