[FFmpeg-cvslog] avformat/udp: fix build on MINIX

Michael Niedermayer git at videolan.org
Sat Jun 7 14:51:33 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  7 14:43:07 2014 +0200| [b2d1e22c2a5be440d39c42ed713436d7ea6dd0a5] | committer: Michael Niedermayer

avformat/udp: fix build on MINIX

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2d1e22c2a5be440d39c42ed713436d7ea6dd0a5
---

 libavformat/udp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 91b411e..a8baa5b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -647,7 +647,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
     }
 
     if (s->is_broadcast) {
+#ifdef SO_BROADCAST
         if (setsockopt (udp_fd, SOL_SOCKET, SO_BROADCAST, &(s->is_broadcast), sizeof(s->is_broadcast)) != 0)
+#endif
            goto fail;
     }
 



More information about the ffmpeg-cvslog mailing list