Skip to content

Commit 04dbf08

Browse files
committed
fixed #1899
1 parent cf6771c commit 04dbf08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/media_tools/av_parsers.c

+1
Original file line numberDiff line numberDiff line change
@@ -5198,6 +5198,7 @@ static s32 gf_avc_read_sps_bs_internal(GF_BitStream *bs, AVCState *avc, u32 subs
51985198
sps->offset_for_top_to_bottom_field = gf_bs_read_se_log(bs, "offset_for_top_to_bottom_field");
51995199
sps->poc_cycle_length = gf_bs_read_ue_log(bs, "poc_cycle_length");
52005200
if (sps->poc_cycle_length > GF_ARRAY_LENGTH(sps->offset_for_ref_frame)) {
5201+
sps->poc_cycle_length = 255;
52015202
GF_LOG(GF_LOG_ERROR, GF_LOG_CODING, ("[avc-h264] offset_for_ref_frame overflow from poc_cycle_length\n"));
52025203
return -1;
52035204
}

0 commit comments

Comments
 (0)