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

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

OpenSSL docs say:
These functions have no impact when used with DTLS.
This commit is contained in:
Timo Rothenpieler
2025-07-13 16:35:55 +02:00
parent 31abcc1505
commit 49badc8689

View File

@ -790,9 +790,6 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary **
if (!c->listen && !c->numerichost) if (!c->listen && !c->numerichost)
SSL_set_tlsext_host_name(p->ssl, c->host); 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 */ /* Setup the SRTP context */
if (SSL_CTX_set_tlsext_use_srtp(p->ctx, profiles)) { 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", av_log(p, AV_LOG_ERROR, "TLS: Init SSL_CTX_set_tlsext_use_srtp failed, profiles=%s, %s\n",