[FFmpeg-cvslog] udp: Clarify the comment about binding the multicast address
Martin Storsjö
git at videolan.org
Sat Mar 10 01:52:19 CET 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Mar 8 15:15:11 2012 +0200| [1b89bcdd7f12602d8ae9cadc8486f7b0d70e9704] | committer: Martin Storsjö
udp: Clarify the comment about binding the multicast address
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b89bcdd7f12602d8ae9cadc8486f7b0d70e9704
---
libavformat/udp.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 12de48c..e91b95c 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -380,7 +380,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
goto fail;
}
- /* if multicast, try the multicast address bind first */
+ /* If multicast, try binding the multicast address first, to avoid
+ * receiving UDP packets from other sources aimed at the same UDP
+ * port. This fails on windows. */
if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) {
bind_ret = bind(udp_fd,(struct sockaddr *)&s->dest_addr, len);
}
More information about the ffmpeg-cvslog
mailing list