diff --git a/ffmpeg-5.changes b/ffmpeg-5.changes index b94c702..43fbac4 100644 --- a/ffmpeg-5.changes +++ b/ffmpeg-5.changes @@ -11,7 +11,7 @@ Thu Mar 10 13:37:06 UTC 2022 - Bjørn Lie - Drop pkgconfig(librtmp) BuildRequires and stop passing conditional --enable-librtmp to configure, built-in RTMP support is better, and has listen mode. -- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr, +- Drop bcond conditionals for libaom, srt, lv2, soxr, zmq, zimg and openmpt, build unconditionally for all supported versions of openSUSE. - Drop pkgconfig(enca) BuildRequires: Seems unused. diff --git a/ffmpeg-5.spec b/ffmpeg-5.spec index d7f5e37..34da659 100644 --- a/ffmpeg-5.spec +++ b/ffmpeg-5.spec @@ -37,6 +37,17 @@ %preamble_string ffmpeg-private-devel %comparator %conflicts_version \ %nil +%if 0%{?BUILD_ORIG} +%bcond_without cuda_sdk +%else +# If software H264 is disabled, the hw driver must be as well: +# HW drivers can fail to initialize, namely when the hardware is absent. +# Browsers choose video formats on sites like youtube based on `ffmpeg +# -codecs` rather than the success/failure status of libav* initialization. +# This becomes a problem when a format only has a HW driver; +# the browser thinks it can do H264 but never succeeds. +%bcond_with cuda_sdk +%endif %bcond_with amrwb %bcond_with fdk_aac_dlopen %bcond_with opencore @@ -543,6 +554,9 @@ LDFLAGS="%_lto_cflags" \ --enable-ladspa \ %if %{with vulkan} --enable-libshaderc --enable-vulkan \ +%endif +%if !%{with cuda_sdk} + --disable-cuda-sdk \ %endif --enable-libaom \ --enable-libass \