From 289f23911af9ce924e74b9ccf698b4b2bf3258be Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 16 Jun 2008 20:30:59 +0300 Subject: [PATCH] RTP: handle odd port numbers correctly We should also open a RTCP socket, if only to not send ICMP errors back --- modules/demux/rtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/demux/rtp.c b/modules/demux/rtp.c index c94f053327..f900afb4c4 100644 --- a/modules/demux/rtp.c +++ b/modules/demux/rtp.c @@ -174,6 +174,7 @@ static int Open (vlc_object_t *obj) dport = extract_port (&dhost); if (dport == 0) dport = 5004; /* avt-profile-1 port */ + dport = (dport + 1) & ~1; /* RTP is on the "next" even port */ /* Try to connect */ int fd = -1; -- 2.39.2