[FFmpeg-cvslog] avformat/tls_openssl: replace 1 with TLS_ST_OK to be more clear

Jack Lau git at videolan.org
Thu Jul 17 03:37:26 EEST 2025


ffmpeg | branch: master | Jack Lau <jacklau1222 at qq.com> | Sat Jul 12 21:39:54 2025 +0800| [dda91b87e86b9261860e0ffa24ffc3fbe2c5b662] | committer: Timo Rothenpieler

avformat/tls_openssl: replace 1 with TLS_ST_OK to be more clear

Signed-off-by: Jack Lau <jacklau1222 at qq.com>
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dda91b87e86b9261860e0ffa24ffc3fbe2c5b662
---

 libavformat/tls_openssl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index d6d102f8bb..e7792575c3 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -717,7 +717,8 @@ static int dtls_handshake(URLContext *h)
         av_log(p, AV_LOG_TRACE, "Handshake success, r0=%d\n", r0);
     }
 
-    if (SSL_is_init_finished(p->ssl) != 1)
+    /* Check whether the handshake is completed. */
+    if (SSL_is_init_finished(p->ssl) != TLS_ST_OK)
         goto end;
 
     ret = 0;



More information about the ffmpeg-cvslog mailing list