]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Fix short-circuit in write timestamp calc 182/head
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Nov 2019 21:10:15 +0000 (21:10 +0000)
committerAndrey Volk <andywolk@gmail.com>
Mon, 16 Dec 2019 20:37:07 +0000 (00:37 +0400)
src/switch_rtp.c

index 4d60b7c41efac9207455c0dd3271a1b8b317d8c7..5da1b4fbe3e02f7ed0fb053f9e212302d33fe65f 100644 (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;
        }
 
        /*