Mercurial > libavformat.hg
comparison rtpproto.c @ 6489:7406dd71c060 libavformat
rtpproto: Use a sockaddr_storage instead of a sockaddr_in with recvfrom
| author | mstorsjo |
|---|---|
| date | Mon, 27 Sep 2010 16:10:23 +0000 |
| parents | 179ddd49895f |
| children |
comparison
equal
deleted
inserted
replaced
| 6488:96d44d29ac98 | 6489:7406dd71c060 |
|---|---|
| 208 } | 208 } |
| 209 | 209 |
| 210 static int rtp_read(URLContext *h, uint8_t *buf, int size) | 210 static int rtp_read(URLContext *h, uint8_t *buf, int size) |
| 211 { | 211 { |
| 212 RTPContext *s = h->priv_data; | 212 RTPContext *s = h->priv_data; |
| 213 struct sockaddr_in from; | 213 struct sockaddr_storage from; |
| 214 socklen_t from_len; | 214 socklen_t from_len; |
| 215 int len, fd_max, n; | 215 int len, fd_max, n; |
| 216 fd_set rfds; | 216 fd_set rfds; |
| 217 struct timeval tv; | 217 struct timeval tv; |
| 218 #if 0 | 218 #if 0 |
