summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/idct_mmx.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-02-07 16:17:36 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-02-07 16:28:21 +0100
commitb57505471b3fd24c608d4adf781d6d861157ed2e (patch)
treec4b6676e8236e20d5197b3637ec16cb109e53089 /k9decmpeg/idct_mmx.cpp
parentb9a0a136d6f66a61a378ab633eea89fd617a8458 (diff)
downloadk9copy-r14.0.12.tar.gz
k9copy-r14.0.12.zip
Fix FTBFS due to narrowing conversions in x86 mmx code.r14.0.12
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 505c55b2e1251c867bc0f9d6ab17f876c1ee9b7a)
Diffstat (limited to 'k9decmpeg/idct_mmx.cpp')
-rw-r--r--k9decmpeg/idct_mmx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/k9decmpeg/idct_mmx.cpp b/k9decmpeg/idct_mmx.cpp
index 99e8a12..5b656cb 100644
--- a/k9decmpeg/idct_mmx.cpp
+++ b/k9decmpeg/idct_mmx.cpp
@@ -402,10 +402,10 @@ static inline void idct_col (int16_t * const col, const int offset)
#define T3 43790
#define C4 23170
- static const short _T1[] ATTR_ALIGN(8) = {T1,T1,T1,T1};
- static const short _T2[] ATTR_ALIGN(8) = {T2,T2,T2,T2};
- static const short _T3[] ATTR_ALIGN(8) = {T3,T3,T3,T3};
- static const short _C4[] ATTR_ALIGN(8) = {C4,C4,C4,C4};
+ static const unsigned short _T1[] ATTR_ALIGN(8) = {T1,T1,T1,T1};
+ static const unsigned short _T2[] ATTR_ALIGN(8) = {T2,T2,T2,T2};
+ static const unsigned short _T3[] ATTR_ALIGN(8) = {T3,T3,T3,T3};
+ static const unsigned short _C4[] ATTR_ALIGN(8) = {C4,C4,C4,C4};
/* column code adapted from peter gubanov */
/* http://www.elecard.com/peter/idct.shtml */