From dda91b87e86b9261860e0ffa24ffc3fbe2c5b662 Mon Sep 17 00:00:00 2001 From: Jack Lau Date: Sat, 12 Jul 2025 21:39:54 +0800 Subject: [PATCH] avformat/tls_openssl: replace 1 with TLS_ST_OK to be more clear Signed-off-by: Jack Lau Signed-off-by: Timo Rothenpieler --- 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;