From 491ffc8b286828b30f729d661b0779cbce1d1ddc Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 17 Aug 2020 18:43:53 +0200 Subject: [PATCH] fix doc --- source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source.go b/source.go index e6fff906..eab9f147 100644 --- a/source.go +++ b/source.go @@ -212,7 +212,7 @@ func (s *source) runUdp(terminate chan struct{}, conn *gortsplib.ConnClient) boo for { // choose two consecutive ports in range 65536-10000 - // rtp must be pair and rtcp odd + // rtp must be even and rtcp odd rtpPort := (rand.Intn((65535-10000)/2) * 2) + 10000 rtcpPort := rtpPort + 1