Skip to content

Commit

Permalink
fixed #2149
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Mar 21, 2022
1 parent 3ffe59c commit fece809
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/media_tools/av_parsers.c
Expand Up @@ -8500,7 +8500,15 @@ static s32 gf_hevc_read_pps_bs_internal(GF_BitStream *bs, HEVCState *hevc)
pps->entropy_coding_sync_enabled_flag = gf_bs_read_int_log(bs, 1, "entropy_coding_sync_enabled_flag");
if (pps->tiles_enabled_flag) {
pps->num_tile_columns = 1 + gf_bs_read_ue_log(bs, "num_tile_columns_minus1");
if (pps->num_tile_columns > 22) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CODING, ("[HEVC] Invalid num_tile_columns %u\n", pps->num_tile_columns));
return -1;
}
pps->num_tile_rows = 1 + gf_bs_read_ue_log(bs, "num_tile_rows_minus1");
if (pps->num_tile_rows > 20) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CODING, ("[HEVC] Invalid num_tile_rows %u\n", pps->num_tile_rows));
return -1;
}
pps->uniform_spacing_flag = gf_bs_read_int_log(bs, 1, "uniform_spacing_flag");
if (!pps->uniform_spacing_flag) {
for (i = 0; i < pps->num_tile_columns - 1; i++) {
Expand Down

0 comments on commit fece809

Please sign in to comment.