diff options
Diffstat (limited to 'gst/flx/flx_color.c')
-rw-r--r-- | gst/flx/flx_color.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/flx/flx_color.c b/gst/flx/flx_color.c index 73846845..854010a4 100644 --- a/gst/flx/flx_color.c +++ b/gst/flx/flx_color.c @@ -60,10 +60,18 @@ flx_colorspace_convert (FlxColorSpaceConverter * flxpal, guchar * src, while (size--) { col = (*src++ * 3); + +#if G_BYTE_ORDER == G_BIG_ENDIAN + *dest++ = 0; + *dest++ = flxpal->palvec[col]; + *dest++ = flxpal->palvec[col + 1]; + *dest++ = flxpal->palvec[col + 2]; +#else *dest++ = flxpal->palvec[col + 2]; *dest++ = flxpal->palvec[col + 1]; *dest++ = flxpal->palvec[col]; *dest++ = 0; +#endif } } |