Skip to content

Fix build with system libheif >= 1.20.0#84

Merged
garbear merged 1 commit intoxbmc:Piersfrom
dguglielmi:libheif-compat
Sep 6, 2025
Merged

Fix build with system libheif >= 1.20.0#84
garbear merged 1 commit intoxbmc:Piersfrom
dguglielmi:libheif-compat

Conversation

@dguglielmi
Copy link
Contributor

A change occurred in the libheif API for versions 1.20.0 and 1.20.1, which is incompatible with versions 1.19 and >= 1.20.2

Starting from libheif 1.20.2, it is recommended to use the non-deprecated function heif_image_get_plane2()

This patch fixes the compilation of the addon that uses the system versions of libheif.

The fix has been tested on Gentoo Linux with media-libs/libheif 1.19.8, 1.20.1, and 1.20.2.

See:
Upstream issue: strukturag/libheif#1566
User-reported issue: kodi-overlay/kodi-overlay#14

A change occurred in the libheif API for versions 1.20.0 and 1.20.1,
which is incompatible with versions 1.19 and >= 1.20.2

Issue strukturag/libheif#1566

This patch fixes the compilation of the addon that uses the system versions of libheif.

The fix has been tested on Gentoo Linux with media-libs/libheif 1.19.8, 1.20.1, and 1.20.2.
@garbear garbear merged commit 0a50526 into xbmc:Piers Sep 6, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants