aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tls_openssl.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2025-07-13 16:35:55 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2025-07-16 18:46:55 +0200
commit49badc8689e3dbe2bb265a050ffd2fdf976821c1 (patch)
tree98f8fb2fd373554e094fb28d68a6f72988de1bfa /libavformat/tls_openssl.c
parent31abcc1505a8c9d12c15e55ea551947717f621af (diff)
downloadffmpeg-49badc8689e3dbe2bb265a050ffd2fdf976821c1.tar.gz
avformat/tls_openssl: don't enable read_ahead in dtls mode
OpenSSL docs say: These functions have no impact when used with DTLS.
Diffstat (limited to 'libavformat/tls_openssl.c')
-rw-r--r--libavformat/tls_openssl.c3
1 files changed, 0 insertions, 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",