summaryrefslogtreecommitdiff
path: root/user/gst-plugins-good/endian-test.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 15:54:11 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 15:54:11 +0000
commit738717bfd979326a0a1060103e15dfc6deb064b1 (patch)
treeb41c683cc0a4615b59cbba70f36ff7e9d9e9dafb /user/gst-plugins-good/endian-test.patch
parentda8d23d2df44fb4b8a9510ce36d0d66758609426 (diff)
downloadpackages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.gz
packages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.bz2
packages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.xz
packages-738717bfd979326a0a1060103e15dfc6deb064b1.zip
user/gst-plugins-good: new package
Diffstat (limited to 'user/gst-plugins-good/endian-test.patch')
-rw-r--r--user/gst-plugins-good/endian-test.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/gst-plugins-good/endian-test.patch b/user/gst-plugins-good/endian-test.patch
new file mode 100644
index 000000000..52065bf34
--- /dev/null
+++ b/user/gst-plugins-good/endian-test.patch
@@ -0,0 +1,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;