[FFmpeg-trac] #10635(avcodec:new): compilation error at line 93 of librsvgdec.c
FFmpeg
trac at avcodec.org
Sat Oct 28 22:08:21 EEST 2023
#10635: compilation error at line 93 of librsvgdec.c
-------------------------------------+-------------------------------------
Reporter: S.C. | Type: defect
Douglas |
Status: new | Priority: minor
Component: avcodec | Version: git-
| master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
build against librsvg version less than 2.52
The following allows a build to finish but I have not checked against any
test cases:
--- a/libavcodec/librsvgdec.c 2023-10-23 18:58:32.004460000 +0100
+++ b/libavcodec/librsvgdec.c 2023-10-23 19:57:06.170000000 +0100
@@ -90,8 +90,10 @@
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)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10635>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list