h264bitstream icon indicating copy to clipboard operation
h264bitstream copied to clipboard

avcc->pps_table is initialised using the SPS count instead of the PPS count

Open yannlandry opened this issue 8 months ago • 1 comments

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.

https://github.com/aizvorski/h264bitstream/blob/ae72f7395f328876199a7e928d3b4a6dc6a7ce14/h264_avcc.c#L51

yannlandry avatar Jun 19 '24 02:06 yannlandry