GNOME Bugzilla – Bug 515725
[xingmux] Fails on big endian systems
Last modified: 2008-02-11 13:29:00 UTC
Hi, the xingmux unit test currently fails on big endian systems: elements/xingmux.c:125:F:general:test_xing_remux:0: Assertion 'memcmp (test_xing, GST_BUFFER_DATA (outbuffer), GST_BUFFER_SIZE (outbuffer)) == 0' failed I'm debugging this now...
Created attachment 104913 [details] [review] xingmux.diff ok, found the cause with the help of Sjoerd Simons (who tested all this on PPC and found the silly bug). It's not a good idea to use GUINT32_FROM_BE on gint64 :)
I'd use G_MAXUINT32 and "%" G_GINT64_FORMAT instead of "%lld".
Ok, changed both locally and will commit that changed version when Jan accepts it.
Created attachment 104914 [details] [review] xingmux.diff
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org> * gst/mpegaudioparse/gstxingmux.c: (generate_xing_header): Correctly write the size in bytes on big endian systems. Fixes bug #515725.