[FFmpeg-devel] [PATCH] avformat/tls_schannel: fix the return value on EOF

Hendrik Leppkes h.leppkes at gmail.com
Wed Apr 18 15:10:03 EEST 2018


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

diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c
index 9a6e0c92e3..3986b88667 100644
--- a/libavformat/tls_schannel.c
+++ b/libavformat/tls_schannel.c
@@ -515,7 +515,7 @@ cleanup:
     if (ret == 0 && !c->connection_closed)
         ret = AVERROR(EAGAIN);
 
-    return ret < 0 ? ret : 0;
+    return ret < 0 ? ret : AVERROR_EOF;
 }
 
 static int tls_write(URLContext *h, const uint8_t *buf, int len)
-- 
2.16.1.windows.4



More information about the ffmpeg-devel mailing list