Commit 68dc8e75 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: hevc: check pps heterogenous tiling sizes loop (fix #17591)

parent 28c0aa81
......@@ -939,6 +939,9 @@ static bool hevc_parse_pic_parameter_set_rbsp( bs_t *p_bs,
p_pps->uniform_spacing_flag = bs_read1( p_bs );
if( !p_pps->uniform_spacing_flag )
{
if( bs_remain( p_bs ) < (uint64_t) p_pps->num_tile_columns_minus1 +
p_pps->num_tile_rows_minus1 + 1 )
return false;
for( unsigned i=0; i< p_pps->num_tile_columns_minus1; i++ )
(void) bs_read_ue( p_bs );
for( unsigned i=0; i< p_pps->num_tile_rows_minus1; i++ )
......
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