]> git.sesse.net Git - vlc/commit
RTP: when sending to RTP an odd port we need to specify a=rtcp
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 7 Jan 2009 19:11:17 +0000 (21:11 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 7 Jan 2009 19:11:17 +0000 (21:11 +0200)
commitca15fe099037f17537a6f3d2a6c7a17948e37d16
tree4d7a839e6878d6d577d3c86299fee51d6afec839
parenteb3d87723c1ab9d5f695550e4b071e92b2ef2118
RTP: when sending to RTP an odd port we need to specify a=rtcp

Otherwise the receiver would -in principle- try to receive RTP on the
next (plus one) even port, whereas the m= line port would be used for
RTCP. We could also pass a=rtcp for the normal even/RTP & odd/RTCP
ports setup, but that can only confuse receivers with no gain.

Note that receivers may not parse the a=rtcp parameter in any case. In
fact, VLC does not parse the a=rtcp field to this day. In any case,
sending RTP to an *even* port is the only safely interoperable option.
modules/stream_out/rtp.c