mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
[Core] Fix short-circuit in write timestamp calc
This commit is contained in:
parent
7ce50c8bd0
commit
47c5c8f3e8
@ -9039,7 +9039,6 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
|||||||
data = frame->data;
|
data = frame->data;
|
||||||
len = frame->datalen;
|
len = frame->datalen;
|
||||||
ts = rtp_session->flags[SWITCH_RTP_FLAG_RAW_WRITE] ? (uint32_t) frame->timestamp : 0;
|
ts = rtp_session->flags[SWITCH_RTP_FLAG_RAW_WRITE] ? (uint32_t) frame->timestamp : 0;
|
||||||
if (!ts) ts = rtp_session->last_write_ts + rtp_session->samples_per_interval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user