[FFmpeg-devel] [PATCH] UDP: join multicast group on the interface specified with, &localaddr=
Michael Niedermayer
michaelni at gmx.at
Tue Dec 17 01:36:29 CET 2013
On Fri, Dec 13, 2013 at 01:26:39PM +0200, Stoian Ivanov wrote:
> 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
> udp.c | 21 +++++++++++++++------
> 1 file changed, 15 insertions(+), 6 deletions(-)
> ee0a0ec2d8deb138bfd1a4bda9fbe1f81c034fd1 0001-UDP-join-multicast-group-on-the-interface-specified-.patch
> From 9bd3f5cef8016028e5e4f48df970b8793f42dd4a Mon Sep 17 00:00:00 2001
> From: Stoian Ivanov <s.ivanov at teracomm.bg>
> Date: Fri, 13 Dec 2013 12:49:34 +0200
> Subject: [PATCH] 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 at teracomm.bg>
applied
if you want to (co-)maintain the code, please send a patch that adds
yourself to MAINTAINERs for udp
Thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The educated differ from the uneducated as much as the living from the
dead. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131217/c108aee2/attachment.asc>
More information about the ffmpeg-devel
mailing list