diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-20 02:42:58 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-20 02:42:58 -0500 |
commit | d113409bc1cbcd5c297ef129f8d2615646c2bd42 (patch) | |
tree | d8697d56ee01c739f0cb64f85a59d7aeaf6ba91c /user/ffmpeg/altivec-fix.patch | |
parent | 69afe06fa5f0b46de3217aab392f62f1c2342115 (diff) | |
download | packages-d113409bc1cbcd5c297ef129f8d2615646c2bd42.tar.gz packages-d113409bc1cbcd5c297ef129f8d2615646c2bd42.tar.bz2 packages-d113409bc1cbcd5c297ef129f8d2615646c2bd42.tar.xz packages-d113409bc1cbcd5c297ef129f8d2615646c2bd42.zip |
user/ffmpeg: bump to 4.0.1, modernise, etc
Diffstat (limited to 'user/ffmpeg/altivec-fix.patch')
-rw-r--r-- | user/ffmpeg/altivec-fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/ffmpeg/altivec-fix.patch b/user/ffmpeg/altivec-fix.patch new file mode 100644 index 000000000..6356c60ef --- /dev/null +++ b/user/ffmpeg/altivec-fix.patch @@ -0,0 +1,22 @@ +--- ffmpeg-4.0.2/libavcodec/ppc/hevcdsp.c.old 2018-07-18 13:52:01.000000000 +0000 ++++ ffmpeg-4.0.2/libavcodec/ppc/hevcdsp.c 2018-07-19 08:24:42.480000000 +0000 +@@ -41,8 +41,8 @@ + { 0x04, 0x05, 0x0C, 0x0D, 0x14, 0x15, 0x1C, 0x1D, 0x06, 0x07, 0x0E, 0x0F, 0x16, 0x17, 0x1E, 0x1F }, + }; + +-static void transform4x4(vec_s16 src_01, vec_s16 src_23, vec_s32 res[4], +- const int shift, int16_t *coeffs) ++static inline void transform4x4(vec_s16 src_01, vec_s16 src_23, vec_s32 res[4], ++ const int shift, int16_t *coeffs) + { + vec_s16 src_02, src_13; + vec_s32 zero = vec_splat_s32(0); +@@ -67,7 +67,7 @@ + res[3] = vec_sub(e0, o0); + } + +-static void scale(vec_s32 res[4], vec_s16 res_packed[2], int shift) ++static inline void scale(vec_s32 res[4], vec_s16 res_packed[2], const int shift) + { + int i; + vec_u32 v_shift = vec_splat_u32(shift); |