Skip to content

Commit

Permalink
Merge pull request #6 from kierank/srt-new
Browse files Browse the repository at this point in the history
upipe-srt/sender: seqnum is 31-bits, not 32
  • Loading branch information
funman authored Dec 11, 2023
2 parents 286021e + 7eb2f70 commit 0c02725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/upipe-srt/upipe_srt_sender.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ static inline void upipe_srt_sender_input(struct upipe *upipe, struct uref *uref
uint64_t now = uclock_now(upipe_srt_sender->uclock);

uint32_t seqnum = upipe_srt_sender->seqnum++;
seqnum &= (1U << 31) - 1;
memset(buf, 0, SRT_HEADER_SIZE);
srt_set_packet_control(buf, false);
srt_set_packet_timestamp(buf, (now - upipe_srt_sender->establish_time) / 27);
Expand Down

0 comments on commit 0c02725

Please sign in to comment.