rtp: Fix play multiple multicast streams with the same port
authorZhao Zhili <wantlamy@gmail.com>
Thu, 7 Jan 2016 10:55:50 +0000 (18:55 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Mar 2016 01:29:41 +0000 (02:29 +0100)
commit6f5048f4a0f702d92794dda7752c20ed6033233b
treea7f89140d9ed8cf9897aeb820ab6c78751c5160e
parent86db71b402e9f6b5782e1110ece4cb35c525d4b0
rtp: Fix play multiple multicast streams with the same port

We cannot play multiple multicast streams with the same port at the
same time. This is because both rtp and rtcp port are opened in
read-write mode, so they will not bind to the multicast address. Try
to make rtp port as read-only by default to solve this bug.

Signed-off-by: Zhao Zhili <wantlamy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtpproto.c
libavformat/rtsp.c