[FFmpeg-devel] [PATCH] UDP: join multicast group on the interface specified with, &localaddr=
Stoian Ivanov
s.ivanov at teracomm.bg
Fri Dec 13 12:26:39 CET 2013
Hi All,
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()
Minimal patch but large impact for multicasted ffmpegers :)
Best regards
Stoian Ivanov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-UDP-join-multicast-group-on-the-interface-specified-.patch
Type: text/x-patch
Size: 4572 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131213/a811007f/attachment.bin>
More information about the ffmpeg-devel
mailing list