Commit f0eb9b6b authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: check num_slice_group range

parent 86c35629
......@@ -550,6 +550,8 @@ static bool h264_parse_picture_parameter_set_rbsp( bs_t *p_bs,
p_pps->i_pic_order_present_flag = bs_read( p_bs, 1 );
unsigned num_slice_groups = bs_read_ue( p_bs ) + 1;
if( num_slice_groups > 8 ) /* never has value > 7. Annex A, G & J */
return false;
if( num_slice_groups > 1 )
{
unsigned slice_group_map_type = bs_read_ue( p_bs );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment