From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7629A40EAF for ; Sun, 13 Jul 2025 19:26:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id B508768E330; Sun, 13 Jul 2025 22:25:35 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 7916B68BC58 for ; Sun, 13 Jul 2025 22:25:23 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id E0A7E27FFCCB4; Sun, 13 Jul 2025 21:25:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1752434722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GBi6DgtsnzvhCePExffBcNPnauSmaZup/7OKYIt7Gcw=; b=bO/IN5qrhUU++ZKCnSd5fPY5YXCWjjC17txxJWu4HRjF5ZssHzYXEbUlseDrgJRXripLGo iKoCzKDRaXdRbpwtmgt6R1D7ts4+slOOfq5erMXGzKKMVlHqkNLvucfZbtfM3ydB7KNdcc PN6LB6pt/3L+u/M/a/xRHCl/7Gp6pBMRW/ZXWZC11O//I3kcMaqZkGNnRblbf6xrR16cnp y84s0GV0rIVJl+xPCAHkZJnL2N7adiXgAdc4r+NoQtk5FIdO1PJptp2Ss6w4MZCo7GqlUD Mvx6FiroKJM3yOBX1J1m5ijinvZN5B8qbuOGkBOQDlTCAzoAjmo/gR8dUoRJAA== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sun, 13 Jul 2025 21:24:39 +0200 Message-ID: <20250713192512.928390-5-timo@rothenpieler.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250713192512.928390-1-timo@rothenpieler.org> References: <20250713192512.928390-1-timo@rothenpieler.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/14] avformat/tls_openssl: set default MTU if none is set X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Timo Rothenpieler Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- 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; -- 2.49.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".