Accept Windows Sockets from version 1.1
Version 2.2 is probably not necessary (1.1 is the version required by
FFmpeg when network is enabled).
Refs <891ed24f77/libavformat/network.c (L63)
>
Refs <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartup>
This commit is contained in:
parent
0cea7fb24c
commit
0702be86d8
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ bool
|
||||||
net_init(void) {
|
net_init(void) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WSADATA wsa;
|
WSADATA wsa;
|
||||||
int res = WSAStartup(MAKEWORD(2, 2), &wsa);
|
int res = WSAStartup(MAKEWORD(1, 1), &wsa);
|
||||||
if (res) {
|
if (res) {
|
||||||
LOGE("WSAStartup failed with error %d", res);
|
LOGE("WSAStartup failed with error %d", res);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue