forked from jengelh/ffmpeg-4
Accepting request 723337 from home:michel_mno:branches:multimedia:libs
- avoid ppc64le build error upstream issue https://trac.ffmpeg.org/ticket/7861 Add ffmpeg4_swscale_replace_illegal_vector_keyword.patch Add ffmpeg4_swscale_fix_altivec_vsx_recent_gcc.patch OBS-URL: https://build.opensuse.org/request/show/723337 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-4?expand=0&rev=83
This commit is contained in:
parent
53841d8303
commit
584933a75b
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 14 15:39:22 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
- avoid ppc64le build error upstream issue
|
||||||
|
https://trac.ffmpeg.org/ticket/7861
|
||||||
|
Add ffmpeg4_swscale_replace_illegal_vector_keyword.patch
|
||||||
|
Add ffmpeg4_swscale_fix_altivec_vsx_recent_gcc.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 12 16:51:30 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
|
Mon Aug 12 16:51:30 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
@ -118,6 +118,11 @@ Patch4: ffmpeg-codec-choice.diff
|
|||||||
Patch5: ffmpeg-prefer-dav1d-for-playback.patch
|
Patch5: ffmpeg-prefer-dav1d-for-playback.patch
|
||||||
# https://github.com/OpenMandrivaAssociation/ffmpeg/blob/master/ffmpeg-4.1-dlopen-faac-mp3lame-opencore-x264-x265-xvid.patch
|
# https://github.com/OpenMandrivaAssociation/ffmpeg/blob/master/ffmpeg-4.1-dlopen-faac-mp3lame-opencore-x264-x265-xvid.patch
|
||||||
Patch6: ffmpeg-4.2-dlopen-faac-mp3lame-opencore-x264-x265-xvid.patch
|
Patch6: ffmpeg-4.2-dlopen-faac-mp3lame-opencore-x264-x265-xvid.patch
|
||||||
|
# pending review upstream ML and issue#7861
|
||||||
|
# http://ffmpeg.org/pipermail/ffmpeg-devel/2019-August/247759.html
|
||||||
|
# https://trac.ffmpeg.org/ticket/7861
|
||||||
|
Patch7: ffmpeg4_swscale_replace_illegal_vector_keyword.patch
|
||||||
|
Patch8: ffmpeg4_swscale_fix_altivec_vsx_recent_gcc.patch
|
||||||
BuildRequires: ladspa-devel
|
BuildRequires: ladspa-devel
|
||||||
BuildRequires: libgsm-devel
|
BuildRequires: libgsm-devel
|
||||||
BuildRequires: libmp3lame-devel
|
BuildRequires: libmp3lame-devel
|
||||||
|
50
ffmpeg4_swscale_fix_altivec_vsx_recent_gcc.patch
Normal file
50
ffmpeg4_swscale_fix_altivec_vsx_recent_gcc.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
From daniel at octaforge.org Tue Aug 6 18:55:37 2019
|
||||||
|
From: daniel at octaforge.org (Daniel Kolesa)
|
||||||
|
Date: Tue, 6 Aug 2019 17:55:37 +0200
|
||||||
|
Subject: [FFmpeg-devel] [PATCH 2/2] swscale: Fix AltiVec/VSX build with
|
||||||
|
recent GCC
|
||||||
|
In-Reply-To: <20190806155537.25535-1-daniel@octaforge.org>
|
||||||
|
References: <20190806155537.25535-1-daniel@octaforge.org>
|
||||||
|
Message-ID: <20190806155537.25535-3-daniel@octaforge.org>
|
||||||
|
|
||||||
|
The argument to vec_splat_u16 must be a literal. By making the
|
||||||
|
function always inline and marking the arguments const, gcc can
|
||||||
|
turn those into literals, and avoid build errors like:
|
||||||
|
|
||||||
|
swscale_vsx.c:165:53: error: argument 1 must be a 5-bit signed literal
|
||||||
|
|
||||||
|
Signed-off-by: Daniel Kolesa <daniel at octaforge.org>
|
||||||
|
---
|
||||||
|
libswscale/ppc/swscale_vsx.c | 12 ++++++++----
|
||||||
|
1 file changed, 8 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
Index: ffmpeg-4.2/libswscale/ppc/swscale_vsx.c
|
||||||
|
===================================================================
|
||||||
|
--- ffmpeg-4.2.orig/libswscale/ppc/swscale_vsx.c
|
||||||
|
+++ ffmpeg-4.2/libswscale/ppc/swscale_vsx.c
|
||||||
|
@@ -154,8 +154,10 @@ static void yuv2plane1_nbps_u(const int1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void yuv2plane1_nbps_vsx(const int16_t *src, uint16_t *dest, int dstW,
|
||||||
|
- int big_endian, int output_bits)
|
||||||
|
+static av_always_inline void yuv2plane1_nbps_vsx(const int16_t *src,
|
||||||
|
+ uint16_t *dest, int dstW,
|
||||||
|
+ const int big_endian,
|
||||||
|
+ const int output_bits)
|
||||||
|
{
|
||||||
|
const int dst_u = -(uintptr_t)dest & 7;
|
||||||
|
const int shift = 15 - output_bits;
|
||||||
|
@@ -273,8 +275,10 @@ static void yuv2plane1_16_u(const int32_
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void yuv2plane1_16_vsx(const int32_t *src, uint16_t *dest, int dstW,
|
||||||
|
- int big_endian, int output_bits)
|
||||||
|
+static av_always_inline void yuv2plane1_16_vsx(const int32_t *src,
|
||||||
|
+ uint16_t *dest, int dstW,
|
||||||
|
+ const int big_endian,
|
||||||
|
+ int output_bits)
|
||||||
|
{
|
||||||
|
const int dst_u = -(uintptr_t)dest & 7;
|
||||||
|
const int shift = 3;
|
1360
ffmpeg4_swscale_replace_illegal_vector_keyword.patch
Normal file
1360
ffmpeg4_swscale_replace_illegal_vector_keyword.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user