rtpproto: Use a sockaddr_storage instead of a sockaddr_in with recvfrom
Originally committed as revision 25224 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6e73cef6e3
commit
4a94cfea02
@ -210,7 +210,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
|
|||||||
static int rtp_read(URLContext *h, uint8_t *buf, int size)
|
static int rtp_read(URLContext *h, uint8_t *buf, int size)
|
||||||
{
|
{
|
||||||
RTPContext *s = h->priv_data;
|
RTPContext *s = h->priv_data;
|
||||||
struct sockaddr_in from;
|
struct sockaddr_storage from;
|
||||||
socklen_t from_len;
|
socklen_t from_len;
|
||||||
int len, fd_max, n;
|
int len, fd_max, n;
|
||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user