[vlc-commits] [Git][videolan/vlc][3.0.x] codec: hxxx_helper: don't parse HEVC with the H.264 parser
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Nov 26 14:11:14 UTC 2026
Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC
Commits:
b840693e by Thomas Guillem at 2026-11-26T14:38:46+01:00
codec: hxxx_helper: don't parse HEVC with the H.264 parser
HEVC hvcC streams converted to Annex B were parsed by the H.264 parser,
which writes into the HEVC parameter-set state.
Master fixed this in fa2684404772 by using the HEVC parser. Here, HEVC
is left unparsed instead: the HEVC slice PPS-id lookup rejects valid
slices from streams with several VPS or SPS (#30451).
Fixes #30388
Reported-by: Anthropic (ANT-2026-6XEYJ0C0)
- - - - -
1 changed file:
- modules/codec/hxxx_helper.c
Changes:
=====================================
modules/codec/hxxx_helper.c
=====================================
@@ -578,6 +578,11 @@ helper_process_block_xvcc2annexb(struct hxxx_helper *hh, block_t *p_block,
assert(helper_nal_length_valid(hh));
h264_AVC_to_AnnexB(p_block->p_buffer, p_block->i_buffer,
hh->i_nal_length_size);
+ /* Leave HEVC unparsed until #30451 is fixed: hevc_helper_parse_nal()
+ * drops valid slices of streams with several VPS or SPS. In-band HEVC
+ * parameter set changes are therefore not detected here. */
+ if (hh->i_codec == VLC_CODEC_HEVC)
+ return p_block;
return helper_process_block_h264_annexb(hh, p_block, p_config_changed);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b840693ed881a5594b5c0d657fde5e979a2b8c20
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b840693ed881a5594b5c0d657fde5e979a2b8c20
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list