ffmpeg | branch: master | Timo Rothenpieler <t...@rothenpieler.org> | Sat Jul 12 22:11:17 2025 +0200| [576f44016af195a3d8b9278c044b920461c589f9] | committer: Timo Rothenpieler
avformat/tls_openssl: set default MTU if none is set > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=576f44016af195a3d8b9278c044b920461c589f9 --- libavformat/tls_openssl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index f116b5eac6..900ee0f5ab 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -839,13 +839,17 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** /* Setup the callback for logging. */ SSL_set_ex_data(p->ssl, 0, p); SSL_set_info_callback(p->ssl, openssl_info_callback); + /** * We have set the MTU to fragment the DTLS packet. It is important to note that the * packet is split to ensure that each handshake packet is smaller than the MTU. */ + if (c->mtu <= 0) + c->mtu = 1096; SSL_set_options(p->ssl, SSL_OP_NO_QUERY_MTU); - SSL_set_mtu(p->ssl, p->tls_shared.mtu); - DTLS_set_link_mtu(p->ssl, p->tls_shared.mtu); + SSL_set_mtu(p->ssl, c->mtu); + DTLS_set_link_mtu(p->ssl, c->mtu); + ret = init_bio_method(h); if (ret < 0) goto fail; _______________________________________________ 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".