rtpproto: Check the source IP if one single source has been specified
authorMartin Storsjö <martin@martin.st>
Thu, 18 Jul 2013 18:12:14 +0000 (21:12 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 19 Jul 2013 09:02:09 +0000 (12:02 +0300)
commit4d97ca040b40eb4771d1a6cacdb611f61a53afd8
treeafc7868d87fdcf641953777f45b83fc0285a0e1b
parent336353deaad6e4da28665f50a36988b02b55c20c
rtpproto: Check the source IP if one single source has been specified

If another peer is sending unicast packets to the same port that
we are listening on, those packets can end up being received despite
using source specific multicast. For those cases, manually check the
source address of received packets against the intended source address.

This only handles the case when the source list is one single IP
address for now, which probably is the most common case.

Based on a patch by Ed Torbett.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpproto.c