[Core] Fix short-circuit in write timestamp calc

This commit is contained in:
Anthony Minessale 2019-11-27 21:10:15 +00:00 committed by Andrey Volk
parent 7ce50c8bd0
commit 47c5c8f3e8

View File

@ -9039,7 +9039,6 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
data = frame->data;
len = frame->datalen;
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;
}
/*