[FFmpeg-cvslog] lavf/tcp: Fix the type of the optlen argument to getsockopt().
Carl Eugen Hoyos
git at videolan.org
Sat Nov 18 18:40:55 EET 2017
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sun Nov 12 15:23:14 2017 +0100| [c3b5ea753017d1acaecdbc4dc09dae16e53a9b91] | committer: Carl Eugen Hoyos
lavf/tcp: Fix the type of the optlen argument to getsockopt().
Fixes a warning on aix:
libavformat/tcp.c:283:58: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3b5ea753017d1acaecdbc4dc09dae16e53a9b91
---
libavformat/tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index f3f9d4f431..fef0729da6 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -275,7 +275,7 @@ static int tcp_get_window_size(URLContext *h)
{
TCPContext *s = h->priv_data;
int avail;
- int avail_len = sizeof(avail);
+ socklen_t avail_len = sizeof(avail);
#if HAVE_WINSOCK2_H
/* SO_RCVBUF with winsock only reports the actual TCP window size when
More information about the ffmpeg-cvslog
mailing list