[FFmpeg-devel] [PATCH v2 1/2] avformat/network: Return a proper negative error code from ff_network_init()

Andrew Sayers ffmpeg-devel at pileofstuff.org
Fri Apr 19 20:23:08 EEST 2024


---
 libavformat/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/network.c b/libavformat/network.c
index f752efc411..d518bb0541 100644
--- a/libavformat/network.c
+++ b/libavformat/network.c
@@ -63,7 +63,7 @@ int ff_network_init(void)
     if (WSAStartup(MAKEWORD(1,1), &wsaData))
         return 0;
 #endif
-    return 1;
+    return -1;
 }
 
 int ff_network_wait_fd(int fd, int write)
-- 
2.43.0



More information about the ffmpeg-devel mailing list