Skip to content

Commit 1cf9294

Browse files
author
Alessandro Toppi
authored
Use pkt sequence number to compute timestamp for jitterbuffer packets (#3406)
1 parent 212e4fc commit 1cf9294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/janus_audiobridge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6188,8 +6188,8 @@ void janus_audiobridge_incoming_rtp(janus_plugin_session *handle, janus_plugin_r
61886188
JitterBufferPacket jbp = {0};
61896189
jbp.data = (char *)pkt;
61906190
jbp.len = 0;
6191-
jbp.timestamp = ntohl(rtp->timestamp);
61926191
jbp.span = (participant->codec == JANUS_AUDIOCODEC_OPUS ? 960 : 160);
6192+
jbp.timestamp = (uint32_t)ntohs(rtp->seq_number) * jbp.span;
61936193
jitter_buffer_put(participant->jitter, &jbp);
61946194
janus_mutex_unlock(&participant->qmutex);
61956195
}

0 commit comments

Comments
 (0)