[FFmpeg-devel] [PATCH v3 6/9] avformat/tls_openssl: replace 1 to TLS_ST_OK to be more clear

Jack Lau jacklau1222gm at gmail.com
Sun Jul 13 10:09:47 EEST 2025


Signed-off-by: Jack Lau <jacklau1222 at qq.com>
---
 libavformat/tls_openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index 3ed4585ecf..4f950a2fde 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -695,7 +695,7 @@ static int dtls_handshake(URLContext *h)
     }
 
     /* Check whether the DTLS is completed. */
-    if (SSL_is_init_finished(p->ssl) != 1)
+    if (SSL_is_init_finished(p->ssl) != TLS_ST_OK)
         goto end;
     ret = 0;
     p->tls_shared.state = DTLS_STATE_FINISHED;
-- 
2.49.0



More information about the ffmpeg-devel mailing list