Skip to content

Commit

Permalink
Handle access unit delimiter NALu.
Browse files Browse the repository at this point in the history
Closes #16
  • Loading branch information
lieff committed Feb 22, 2020
1 parent 14d452e commit 8bbd1ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions minimp4.h
Original file line number Diff line number Diff line change
Expand Up @@ -2316,6 +2316,8 @@ int mp4_h26x_write_nal(mp4_h26x_writer_t *h, const unsigned char *nal, int lengt
continue;
}
payload_type = nal[0] & 31;
if (9 == payload_type)
return; /* access unit delimiter */
#if MINIMP4_TRANSCODE_SPS_ID
// Transcode SPS, PPS and slice headers, reassigning ID's for SPS and PPS:
// - assign unique ID's to different SPS and PPS
Expand Down

0 comments on commit 8bbd1ca

Please sign in to comment.