Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
aa0bb8e5 by François Cartegnie at 2026-01-22T13:54:34+00:00
packetizer: hevc: cap max_num_negative/positive_pics
refs #29559
- - - - -
1 changed file:
- modules/packetizer/hevc_nal.c
Changes:
=====================================
modules/packetizer/hevc_nal.c
=====================================
@@ -733,7 +733,10 @@ static bool hevc_parse_st_ref_pic_set( bs_t *p_bs,
unsigned stRpsIdx,
{
nal_ue_t num_negative_pics = bs_read_ue( p_bs );
nal_ue_t num_positive_pics = bs_read_ue( p_bs );
- if( bs_error( p_bs ) )
+ // A.4.2 total to (MaxDpbSize -1) with MaxDpbSize capped either at 16
or 7
+ if( bs_error( p_bs ) ||
+ num_negative_pics >= 16 || num_positive_pics >= 16 ||
+ num_negative_pics + num_positive_pics >= 16 )
return false;
for(unsigned int i=0; i<num_negative_pics; i++)
{
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/aa0bb8e56211d7fa7367291f54d9e4db61ae158f
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/aa0bb8e56211d7fa7367291f54d9e4db61ae158f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits