66 char host[1024], path[1024], url[1024];
75 av_url_split(NULL, 0, NULL, 0, host,
sizeof(host), &port,
82 av_strlcpy(host,
"224.2.127.254",
sizeof(host));
85 ff_url_join(url,
sizeof(url),
"udp", NULL, host, port,
"?localport=%d",
93 int addr_type, auth_len;
107 if ((recvbuf[0] & 0xe0) != 0x20) {
113 if (recvbuf[0] & 0x04) {
118 addr_type = recvbuf[0] & 0x10;
119 auth_len = recvbuf[1];
127 if (pos + 4 >= ret) {
131 #define MIME "application/sdp"
132 if (strcmp(&recvbuf[pos],
MIME) == 0) {
133 pos += strlen(
MIME) + 1;
134 }
else if (strncmp(&recvbuf[pos],
"v=0\r\n", 5) == 0) {
189 struct pollfd p = {fd, POLLIN, 0};
197 if (n <= 0 || !(p.revents & POLLIN))
203 if (recvbuf[0] & 0x04 && hash == sap->
hash) {
232 .priv_data_size =
sizeof(
struct SAPState),