At line 51 in read_avcc(), avcc->pps_table is initialised using avcc->numOfSequenceParameterSets where it should probably be using avcc->numOfPictureParameterSets. Otherwise, there could be an out-of-bound situation if the number of PPS is greater than the number of SPS.
At line 51 in
read_avcc()
,avcc->pps_table
is initialised usingavcc->numOfSequenceParameterSets
where it should probably be usingavcc->numOfPictureParameterSets
. Otherwise, there could be an out-of-bound situation if the number of PPS is greater than the number of SPS.https://github.com/aizvorski/h264bitstream/blob/ae72f7395f328876199a7e928d3b4a6dc6a7ce14/h264_avcc.c#L51