Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #2366
  • Loading branch information
jeanlf committed Jan 4, 2023
1 parent 78b76fa commit af6a5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/media_tools/av_parsers.c
Expand Up @@ -5677,10 +5677,10 @@ static s32 avc_parse_slice(GF_BitStream *bs, AVCState *avc, Bool svc_idr_flag, A
if (si->slice_type > 9) return -1;

pps_id = gf_bs_read_ue_log(bs, "pps_id");
if ((pps_id<0) || (pps_id > 255)) return -1;
if ((pps_id<0) || (pps_id >= 255)) return -1;
si->pps = &avc->pps[pps_id];
if (!si->pps->slice_group_count) return -2;
if (si->pps->sps_id>=255) return -1;
if (si->pps->sps_id>=32) return -1;
si->sps = &avc->sps[si->pps->sps_id];
if (!si->sps->log2_max_frame_num) return -2;
avc->sps_active_idx = si->pps->sps_id;
Expand Down Expand Up @@ -5787,7 +5787,7 @@ static s32 svc_parse_slice(GF_BitStream *bs, AVCState *avc, AVCSliceInfo *si)
if (si->slice_type > 9) return -1;

pps_id = gf_bs_read_ue_log(bs, "pps_id");
if ((pps_id<0) || (pps_id > 255))
if ((pps_id<0) || (pps_id >= 255))
return -1;
si->pps = &avc->pps[pps_id];
si->pps->id = pps_id;
Expand Down

0 comments on commit af6a5e7

Please sign in to comment.