Opened 3 years ago

Closed 9 months ago

Last modified 9 months ago

#10722 closed defect (fixed)

Build failure with librsvg older than 2.52

Reported by: Lastique Owned by: Leo Izen <leo.izen@gmail.com>
Priority: normal Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Compiling ffmpeg 6.1 on Debian Bullseye with librsvg 2.50.3 fails with the following error:

[01m[Ksrc/libavcodec/librsvgdec.c:[m[K In function '[01m[Klibrsvg_decode_frame[m[K':
[01m[Ksrc/libavcodec/librsvgdec.c:93:5:[m[K [01;31m[Kerror: [m[K'[01m[Kviewport[m[K' undeclared (first use in this function)
   93 |     [01;31m[Kviewport[m[K.width = dimensions.width;
      |     [01;31m[K^~~~~~~~[m[K
[01m[Ksrc/libavcodec/librsvgdec.c:93:5:[m[K [01;36m[Knote: [m[Keach undeclared identifier is reported only once for each function it appears in

It looks like there is a missing librsvg version check in libavcodec/librsvgdec.c:93.

Attachments (1)

09_fix_librsvgdec_compilation.patch (783 bytes ) - added by Lastique 3 years ago.
A fix for the compilation error.

Download all attachments as: .zip

Change History (4)

by Lastique, 3 years ago

A fix for the compilation error.

comment:2 by Leo Izen, 9 months ago

Resolution: fixed
Status: newclosed

comment:3 by Leo Izen <leo.izen@gmail.com>, 9 months ago

Owner: set to Leo Izen <leo.izen@gmail.com>

In 9ee7796c/ffmpeg:

avcodec/librsvgdec: fix compilation with librsvg 2.50.3

This fixes compilation with librsvg 2.50.3: error: viewport undeclared

This was a regression since commit
86ed68420d3b60439d0b7767c53d0fdc1deb7277.

Fixes #10722.

Reviewed-by: Leo Izen <leo.izen@gmail.com>

Note: See TracTickets for help on using tickets.