[FFmpeg-devel] [PATCH 1/2] avformat/utils: handle errors > 0 in avformat_network_init()

Andrew Sayers ffmpeg-devel at pileofstuff.org
Fri Apr 19 19:59:45 EEST 2024


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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4dded7aea4..855723a406 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -560,7 +560,7 @@ int avformat_network_init(void)
 {
 #if CONFIG_NETWORK
     int ret;
-    if ((ret = ff_network_init()) < 0)
+    if ((ret = ff_network_init()))
         return ret;
     if ((ret = ff_tls_init()) < 0)
         return ret;
-- 
2.43.0



More information about the ffmpeg-devel mailing list