aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStoian Ivanov <s.ivanov@teracomm.bg>2013-12-13 12:49:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-12-17 01:14:28 +0100
commit5fe415f0f415bb4f654851032185dff88ba943aa (patch)
tree3e27ee1efee0645764d41099440ed31d885d15a7 /tools
parent49f10c9cb185315a41ee06cf7c4c55abfd470c7a (diff)
downloadffmpeg-5fe415f0f415bb4f654851032185dff88ba943aa.tar.gz
UDP: join multicast group on the interface specified with &localaddr=
When joining multicast groups, ffmpeg was using INADDR_ANY as interface address which leads to enabling the multicast group on the interface with "default gateway". Often multicast traffic is received over dedicated interface, which scenario ffmpeg was unable to handle. With this patch, ffmpeg will enable multicast group to the interfaces configured with address specified in &localaddr= parameter of udp:// URL. To avoid loacal_addr resolve at udp_close(...) the UDPContext structure was extended with struct sockaddr_storage local_addr_storage member, which is populated in udp_open(..) and passed to udp_join_multicast_group() and udp_leave_multicast_group(). Signed-off-by: Stoian Ivanov <s.ivanov@teracomm.bg> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions