https://trac.ffmpeg.org/ticket/10722
|
old
|
new
|
static int librsvg_decode_frame(AVCodecC
|
| 88 | 88 | ret = ff_set_dimensions(avctx, dimensions.width, dimensions.height); |
| 89 | 89 | if (ret < 0) |
| 90 | 90 | goto end; |
| 91 | 91 | |
| 92 | 92 | avctx->pix_fmt = AV_PIX_FMT_RGB32; |
| | 93 | #if LIBRSVG_MAJOR_VERSION > 2 || LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VERSION >= 52 |
| 93 | 94 | viewport.width = dimensions.width; |
| 94 | 95 | viewport.height = dimensions.height; |
| | 96 | #endif |
| 95 | 97 | |
| 96 | 98 | ret = ff_get_buffer(avctx, frame, 0); |
| 97 | 99 | if (ret < 0) |
| 98 | 100 | goto end; |
| 99 | 101 | |