diff --git a/ffmpeg.spec b/ffmpeg.spec index 0f969d3db3fcc5bb6931eaa02ee26224d88cf759..c849d6a9c145e36156358248eabacc6787314f12 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -59,7 +59,7 @@ ExclusiveArch: armv7hnl Summary: Digital VCR and streaming server Name: ffmpeg%{?flavor} Version: 6.1.1 -Release: 3 +Release: 4 License: GPL-3.0-or-later URL: http://ffmpeg.org/ Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz @@ -69,6 +69,7 @@ Patch0: avformat-get_first_dts.patch %endif Patch1: fix-CVE-2023-50007.patch Patch2: fix-CVE-2023-50008.patch +Patch3: fix_libsvgdec_compile_error.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} %{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel} @@ -397,6 +398,9 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir} %changelog +* Tue Jun 4 2024 technology208 - 6.1.1-4 +- Add patch to fix libsvdec compile error + * Fri May 31 2024 xuchenchen - 6.1.1-3 - fix CVE-2023-50007.patch - fix CVE-2023-50008.patch diff --git a/fix_libsvgdec_compile_error.patch b/fix_libsvgdec_compile_error.patch new file mode 100644 index 0000000000000000000000000000000000000000..156066863b9e704d5226c6e887a09bd0dd3587c8 --- /dev/null +++ b/fix_libsvgdec_compile_error.patch @@ -0,0 +1,27 @@ +From a414e25b60b8d11e30479d4f33fb9a94719dae8e Mon Sep 17 00:00:00 2001 +From: technology208 +Date: Tue, 4 Jun 2024 10:44:30 +0800 +Subject: [PATCH] fix_libsvgdec_compile_error.patch + +--- + libavcodec/librsvgdec.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libavcodec/librsvgdec.c b/libavcodec/librsvgdec.c +index c328fbc..756c26d 100644 +--- a/libavcodec/librsvgdec.c ++++ b/libavcodec/librsvgdec.c +@@ -90,8 +90,10 @@ static int librsvg_decode_frame(AVCodecContext *avctx, AVFrame *frame, + goto end; + + avctx->pix_fmt = AV_PIX_FMT_RGB32; ++#if LIBRSVG_MAJOR_VERSION > 2 || LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VERSION >= 52 + viewport.width = dimensions.width; + viewport.height = dimensions.height; ++#endif + + ret = ff_get_buffer(avctx, frame, 0); + if (ret < 0) +-- +2.33.0 +