summaryrefslogtreecommitdiff
path: root/contrib/ffmpeg/libavformat/rtpproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg/libavformat/rtpproto.c')
-rw-r--r--contrib/ffmpeg/libavformat/rtpproto.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/contrib/ffmpeg/libavformat/rtpproto.c b/contrib/ffmpeg/libavformat/rtpproto.c
index d31c509c2..4d32e667d 100644
--- a/contrib/ffmpeg/libavformat/rtpproto.c
+++ b/contrib/ffmpeg/libavformat/rtpproto.c
@@ -22,15 +22,7 @@
#include <unistd.h>
#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#ifndef __BEOS__
-# include <arpa/inet.h>
-#else
-# include "barpainet.h"
-#endif
-#include <netdb.h>
+#include "network.h"
#include <fcntl.h>
#define RTP_TX_BUF_SIZE (64 * 1024)
@@ -96,7 +88,7 @@ static void build_udp_url(char *buf, int buf_size,
if (local_port >= 0)
url_add_option(buf, buf_size, "localport=%d", local_port);
if (multicast)
- url_add_option(buf, buf_size, "multicast=1", multicast);
+ url_add_option(buf, buf_size, "multicast=1");
if (ttl >= 0)
url_add_option(buf, buf_size, "ttl=%d", ttl);
}
@@ -121,7 +113,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
s = av_mallocz(sizeof(RTPContext));
if (!s)
- return -ENOMEM;
+ return AVERROR(ENOMEM);
h->priv_data = s;
url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,