ffmpeg | branch: master | Jack Lau <jacklau1...@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 <jacklau1...@qq.com> Signed-off-by: Timo Rothenpieler <t...@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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".