[vlc-commits] [Git][videolan/vlc][master] packetizer: h266: remove dead code
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Aug 21 09:15:07 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
f8d7ef84 by Steve Lhomme at 2026-08-21T09:04:00+00:00
packetizer: h266: remove dead code
gci_num_additional_bits is at least 6 in this test. We can subtract 6 from it.
And we can skip 0 bits if that's what the bitstream requires.
This matches the pseudo-code in H.266 7.3.3.2 General constraints information syntax [^1].
Fixes #30056
[^1]: https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-H.266-202601-I!!PDF-E&type=items
- - - - -
1 changed file:
- modules/packetizer/h266_nal.c
Changes:
=====================================
modules/packetizer/h266_nal.c
=====================================
@@ -51,8 +51,6 @@ static bool h266_parse_general_constraint_info(bs_t *p_bs, h266_profile_tier_lev
if(gci_num_additional_bits > 5)
{
bs_read(p_bs, 6);
- if(gci_num_additional_bits < 6)
- return false;
gci_num_additional_bits -= 6;
}
bs_skip(p_bs, gci_num_additional_bits);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f8d7ef84e037c9741e9878a114fd004da6a6dd2a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f8d7ef84e037c9741e9878a114fd004da6a6dd2a
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