Accepting request 1008955 from multimedia:libs
- Enable AMF conditionally (forwarded request 1008954 from alois) OBS-URL: https://build.opensuse.org/request/show/1008955 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ffmpeg-5?expand=0&rev=6
This commit is contained in:
commit
dd213b10b3
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 5 17:00:38 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Enable AMF conditionally
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 26 18:44:55 UTC 2022 - C J <c.j@tuta.io>
|
Mon Sep 26 18:44:55 UTC 2022 - C J <c.j@tuta.io>
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
%nil
|
%nil
|
||||||
|
|
||||||
%if 0%{?BUILD_ORIG}
|
%if 0%{?BUILD_ORIG}
|
||||||
|
%bcond_without amf_sdk
|
||||||
%bcond_without cuda_sdk
|
%bcond_without cuda_sdk
|
||||||
%else
|
%else
|
||||||
# If software H264 is disabled, the hw driver must be as well:
|
# If software H264 is disabled, the hw driver must be as well:
|
||||||
@ -46,6 +47,7 @@
|
|||||||
# -codecs` rather than the success/failure status of libav* initialization.
|
# -codecs` rather than the success/failure status of libav* initialization.
|
||||||
# This becomes a problem when a format only has a HW driver;
|
# This becomes a problem when a format only has a HW driver;
|
||||||
# the browser thinks it can do H264 but never succeeds.
|
# the browser thinks it can do H264 but never succeeds.
|
||||||
|
%bcond_with amf_sdk
|
||||||
%bcond_with cuda_sdk
|
%bcond_with cuda_sdk
|
||||||
%endif
|
%endif
|
||||||
%bcond_with amrwb
|
%bcond_with amrwb
|
||||||
@ -103,6 +105,9 @@ Patch9: ffmpeg-4.4-CVE-2020-22046.patch
|
|||||||
Patch10: ffmpeg-chromium.patch
|
Patch10: ffmpeg-chromium.patch
|
||||||
Patch91: ffmpeg-dlopen-openh264.patch
|
Patch91: ffmpeg-dlopen-openh264.patch
|
||||||
|
|
||||||
|
%if %{with amf_sdk}
|
||||||
|
BuildRequires: AMF-devel
|
||||||
|
%endif
|
||||||
BuildRequires: ladspa-devel
|
BuildRequires: ladspa-devel
|
||||||
BuildRequires: libgsm-devel
|
BuildRequires: libgsm-devel
|
||||||
BuildRequires: libmp3lame-devel
|
BuildRequires: libmp3lame-devel
|
||||||
@ -557,6 +562,9 @@ LDFLAGS="%_lto_cflags" \
|
|||||||
%if %{with vulkan}
|
%if %{with vulkan}
|
||||||
--enable-libshaderc --enable-vulkan \
|
--enable-libshaderc --enable-vulkan \
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with amf}
|
||||||
|
--enable-amf \
|
||||||
|
%endif
|
||||||
%if !%{with cuda_sdk}
|
%if !%{with cuda_sdk}
|
||||||
--disable-cuda-sdk \
|
--disable-cuda-sdk \
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user