History

rtpproto: Use a sockaddr_storage instead of a sockaddr_in with recvfrom

Originally committed as revision 25224 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö committed 16 years ago

Commit 4a94cfe1 parent 6e73cef1 file · +1 −1Browse files

Unified · Split

libavformat/rtpproto.c+1−1
@@ -210,7 +210,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) · 209 unmodified lines
210210 static int rtp_read(URLContext *h, uint8_t *buf, int size)
211211 {
212212 RTPContext *s = h->priv_data;
213− struct sockaddr_in from;
213+ struct sockaddr_storage from;
214214 socklen_t from_len;
215215 int len, fd_max, n;
216216 fd_set rfds;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t