Skip to content

Commit

Permalink
fix: rtp h.264 mtap ts offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed May 27, 2023
1 parent 55b4d3f commit 32dc35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librtp/payload/rtp-h264-unpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int rtp_h264_unpack_mtap(struct rtp_decode_h264_t *unpacker, const uint8_

//dond = (ptr[2] + donb) % 65536;
ts = (uint16_t)nbo_r16(ptr + 3);
if (3 == n) ts = (ts << 16) | ptr[5]; // MTAP24
if (3 == n) ts = (ts << 8) | ptr[5]; // MTAP24

// if the NALU-time is larger than or equal to the RTP timestamp of the packet,
// then the timestamp offset equals (the NALU - time of the NAL unit - the RTP timestamp of the packet).
Expand Down

0 comments on commit 32dc35c

Please sign in to comment.