--- a/libavcodec/librsvgdec.c 2023-11-26 17:18:18.099129881 +0100 +++ b/libavcodec/librsvgdec.c 2023-11-26 17:21:10.620898463 +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)