diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-30 16:44:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-30 16:44:22 +0000 |
commit | 4232f9996f1d47ba168254e50601b54041899d08 (patch) | |
tree | d162fd2a6ef318d8927f5065e4a7c2865a713321 /fix_libsvgdec_compile_error.patch | |
parent | 651ba008d9e5b2844835552ead82d9734b1e0037 (diff) |
automatic import of ffmpegopeneuler24.03_LTS
Diffstat (limited to 'fix_libsvgdec_compile_error.patch')
-rw-r--r-- | fix_libsvgdec_compile_error.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fix_libsvgdec_compile_error.patch b/fix_libsvgdec_compile_error.patch new file mode 100644 index 0000000..1560668 --- /dev/null +++ b/fix_libsvgdec_compile_error.patch @@ -0,0 +1,27 @@ +From a414e25b60b8d11e30479d4f33fb9a94719dae8e Mon Sep 17 00:00:00 2001 +From: technology208 <technology@208suo.com> +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 + |