Skip to content

Commit

Permalink
fixed #1899
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Aug 30, 2021
1 parent cf6771c commit 04dbf08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/media_tools/av_parsers.c
Original file line number Diff line number Diff line change
Expand Up @@ -5198,6 +5198,7 @@ static s32 gf_avc_read_sps_bs_internal(GF_BitStream *bs, AVCState *avc, u32 subs
sps->offset_for_top_to_bottom_field = gf_bs_read_se_log(bs, "offset_for_top_to_bottom_field");
sps->poc_cycle_length = gf_bs_read_ue_log(bs, "poc_cycle_length");
if (sps->poc_cycle_length > GF_ARRAY_LENGTH(sps->offset_for_ref_frame)) {
sps->poc_cycle_length = 255;
GF_LOG(GF_LOG_ERROR, GF_LOG_CODING, ("[avc-h264] offset_for_ref_frame overflow from poc_cycle_length\n"));
return -1;
}
Expand Down

0 comments on commit 04dbf08

Please sign in to comment.