tweak rtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6151 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
353b754d82
commit
69899e821d
|
@ -1611,11 +1611,10 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
|||
rtp_session->ts = (uint32_t) frame->timestamp;
|
||||
} else if (rtp_session->timer.timer_interface) {
|
||||
uint32_t sc = rtp_session->timer.samplecount;
|
||||
if (rtp_session->last_write_ts == sc) {
|
||||
rtp_session->ts = sc + rtp_session->samples_per_interval;
|
||||
} else {
|
||||
rtp_session->ts = sc;
|
||||
if (sc <= rtp_session->last_write_ts) {
|
||||
sc = rtp_session->last_write_ts + rtp_session->samples_per_interval;
|
||||
}
|
||||
rtp_session->ts = sc;
|
||||
} else {
|
||||
rtp_session->ts += rtp_session->samples_per_interval;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue