ffmpeg | branch: master | Timo Rothenpieler <t...@rothenpieler.org> | Sun Jul 
13 16:35:55 2025 +0200| [49badc8689e3dbe2bb265a050ffd2fdf976821c1] | committer: 
Timo Rothenpieler

avformat/tls_openssl: don't enable read_ahead in dtls mode

OpenSSL docs say:
These functions have no impact when used with DTLS.

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

 libavformat/tls_openssl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index 63fc085e28..c58044b46b 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -790,9 +790,6 @@ static int dtls_start(URLContext *h, const char *url, int 
flags, AVDictionary **
     if (!c->listen && !c->numerichost)
         SSL_set_tlsext_host_name(p->ssl, c->host);
 
-    /* Whether we should read as many input bytes as possible (for 
non-blocking reads) or not. */
-    SSL_CTX_set_read_ahead(p->ctx, 1);
-
     /* Setup the SRTP context */
     if (SSL_CTX_set_tlsext_use_srtp(p->ctx, profiles)) {
         av_log(p, AV_LOG_ERROR, "TLS: Init SSL_CTX_set_tlsext_use_srtp failed, 
profiles=%s, %s\n",

_______________________________________________
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".

Reply via email to