Debian Patches

Status for libheif/1.23.7-2

Patch Description Author Forwarded Bugs Origin Last update
sequence-durations-reordered-frames.patch Use the decoded sample index for sequence frame durations Track_Visual::decode_next_image_sample() looked up the duration of a decoded
frame by the output position in decoding order. With frame reordering
(HEVC B-frames from x265 with an unrestricted GOP structure), frames are
output in presentation order, so the durations were assigned to the wrong
frames, e.g. {100, 400, 250} instead of {100, 250, 400}. This makes the
sequence_vfr_durations test fail with the FFmpeg decoder whenever x265
decides to emit a B-frame.
.
The decoder plugins already pass the sample index through as per-frame user
data (FFmpeg via the packet pts), and it is already used for the TAI
timestamp and content-ID lookups. Use it for the duration as well and fall
back to the output position if a plugin does not report it.
.
The WebCodecs plugin discarded the user data and always reported 0, which
would assign the duration of sample 0 to every frame. It decodes only the
last pushed sample, so keep that sample's user data and report it.
Joachim Bauch <fancycode@debian.org> yes 2026-11-13

All known versions for source package 'libheif'

Links