Skip to content

Commit

Permalink
Merge pull request #58 from yannlandry/fix_pps
Browse files Browse the repository at this point in the history
Allocate avcc->pps_table with the num of PPS, not the num of SPS
  • Loading branch information
aizvorski authored Jun 20, 2024
2 parents ae72f73 + 5bfb960 commit 70124d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h264_avcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int read_avcc(avcc_t* avcc, h264_stream_t* h, bs_t* b)
}

avcc->numOfPictureParameterSets = bs_read_u(b, 8);
avcc->pps_table = (pps_t**)calloc(avcc->numOfSequenceParameterSets, sizeof(pps_t*));
avcc->pps_table = (pps_t**)calloc(avcc->numOfPictureParameterSets, sizeof(pps_t*));
for (int i = 0; i < avcc->numOfPictureParameterSets; i++)
{
int pictureParameterSetLength = bs_read_u(b, 16);
Expand Down

0 comments on commit 70124d3

Please sign in to comment.