Opened 7 months ago

#10722 new defect

Build failure with librsvg older than 2.52

Reported by: Lastique Owned by:
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 7 months ago.
A fix for the compilation error.

Download all attachments as: .zip

Change History (1)

by Lastique, 7 months ago

A fix for the compilation error.

Note: See TracTickets for help on using tickets.