summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-02-19 17:16:36 +0100
committerSlávek Banko <[email protected]>2020-02-19 17:16:36 +0100
commitc6054f3c4c2adb5fcaf82eb57931eb430576a0b5 (patch)
tree294af441cceed5e46a99b952b6dd90207a91ab56
parent5fee9eb05f651aab6cb5627a68c4bdb16637d7bd (diff)
downloadkaffeine-c6054f3c4c2adb5fcaf82eb57931eb430576a0b5.tar.gz
kaffeine-c6054f3c4c2adb5fcaf82eb57931eb430576a0b5.zip
Fix FTBFS on big-endian architectures.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--kaffeine/src/player-parts/xine-part/kxinewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
index 49f76cf..37729b3 100644
--- a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
+++ b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
@@ -1524,7 +1524,7 @@ bool KXineWidget::playDvb()
#if Q_BYTE_ORDER == TQ_LITTLE_ENDIAN
#define rgb2yuv(R,G,B) ((((((66*R+129*G+25*B+128)>>8)+16)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((-38*R-74*G+112*B+128)>>8)+128))
#else
-#define rgb2yuv(R,G,B) (((((((-38*R-74*G+112*B+128)>>8)+128)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((66*R+129*G+25*B+128)>>8)+16))<<8)
+#define rgb2yuv(R,G,B) (unsigned int)(((((((-38*R-74*G+112*B+128)>>8)+128)<<8)| (((112*R-94*G-18*B+128)>>8)+128))<<8|(((66*R+129*G+25*B+128)>>8)+16))<<8)
#endif
void KXineWidget::initDvbPalette()