From: Anthony Minessale Date: Wed, 27 Nov 2019 21:10:15 +0000 (+0000) Subject: [Core] Fix short-circuit in write timestamp calc X-Git-Tag: v1.10.2^2~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c5c8f3e8957c37fad5feeeb791375d05992b93;p=thirdparty%2Ffreeswitch.git [Core] Fix short-circuit in write timestamp calc --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 4d60b7c41e..5da1b4fbe3 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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; } /*