Skip to content

Commit 893fb99

Browse files
committed
fixed #1902
1 parent 5dd71c7 commit 893fb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/media_tools/av_parsers.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -6113,7 +6113,8 @@ s32 gf_avc_parse_nalu(GF_BitStream *bs, AVCState *avc)
61136113
ret = 1;
61146114
break;
61156115
}
6116-
assert(avc->s_info.sps);
6116+
if (!avc->s_info.sps)
6117+
return -1;
61176118

61186119
if (avc->s_info.sps->poc_type == n_state.sps->poc_type) {
61196120
if (!avc->s_info.sps->poc_type) {

0 commit comments

Comments
 (0)