blob: 52065bf34fe1dccc7b55da1e318be9111590c07e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- gst-plugins-good-1.14.4/tests/check/elements/alpha.c.old 2018-03-23 20:44:48.000000000 +0000
+++ gst-plugins-good-1.14.4/tests/check/elements/alpha.c 2019-01-10 15:47:17.410000000 +0000
@@ -99,9 +99,17 @@
int i;
if (color == FILL_GREEN)
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ rgba_col = 0x00ff00ff;
+#else
rgba_col = 0xff00ff00; /* GREEN */
+#endif
else
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ rgba_col = 0x0000ffff;
+#else
rgba_col = 0xffff0000; /* BLUE */
+#endif
for (i = 0; i < HEIGHT * WIDTH; i++)
rgba32[i] = rgba_col;
|