1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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

Signed-off-by: Jack Lau <jacklau1222@qq.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
Jack Lau
2025-07-12 21:39:54 +08:00
committed by Timo Rothenpieler
parent 7bd3bdbd62
commit dda91b87e8

View File

@ -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;