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:
Romain Vimont 2023-02-27 19:58:20 +01:00
parent 0cea7fb24c
commit 0702be86d8

View file

@ -30,7 +30,7 @@ bool
net_init(void) {
#ifdef _WIN32
WSADATA wsa;
int res = WSAStartup(MAKEWORD(2, 2), &wsa);
int res = WSAStartup(MAKEWORD(1, 1), &wsa);
if (res) {
LOGE("WSAStartup failed with error %d", res);
return false;