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 6228A4BA37 for ; Tue, 22 Jul 2025 12:43:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 89F8568D39B; Tue, 22 Jul 2025 15:43:26 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id E754B68CC5D for ; Tue, 22 Jul 2025 15:43:19 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 3A5F927FD33C3 for ; Tue, 22 Jul 2025 14:43:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1753188199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HpUDL5Vw8N0gTLclrKufSOa99oyfL5HL/M2lN/1+zNM=; b=ETzrNz79tZdp3nq7glGF+7Y20J9TLN4Q1Zj0TUrHgoCsea/St650ffJSvQiQPHgp+uwbZY q2um86RWDEEBf8CfDP3RT3Ou8Jz4a8HreOxR2K2Tmszu12sgknAGt76o5fSEl8AwrI39Bf iPrVjEIomha0ArfRw2HASJfCxpmMP8nVHU/wepwbXcCugU3Z3iK4DABc5NcZZEjIrjkiQj v7Lc71HUOcFi3ntUi0CbudI7ITh7RQbd1Mi/cKivLfNNlvwDQHkh5sYSLHlelllSoT9uNt WrE1Mf6q2LXsf7iSeGUmtdixqblYGzw/bhigjnWz9ttnDog1l2gGTzRYXvZbCw== Message-ID: Date: Tue, 22 Jul 2025 14:43:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ffmpeg-devel@ffmpeg.org References: <20250722123616.53164-1-jacklau1222@qq.com> <20250722123616.53164-13-jacklau1222@qq.com> Content-Language: en-US, de-DE From: Timo Rothenpieler In-Reply-To: <20250722123616.53164-13-jacklau1222@qq.com> Subject: Re: [FFmpeg-devel] [PATCH v5 12/15] avformat/tls_openssl: directly use mtu in TLSShared 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 22/07/2025 14:36, Jack Lau wrote: > Openssl 1.1.0 version haven't DTLS_get_data_mtu API > > Signed-off-by: Jack Lau > --- > libavformat/tls_openssl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c > index fa852aac18..54860857c0 100644 > --- a/libavformat/tls_openssl.c > +++ b/libavformat/tls_openssl.c > @@ -1013,7 +1013,7 @@ static int tls_write(URLContext *h, const uint8_t *buf, int size) > uc->flags |= h->flags & AVIO_FLAG_NONBLOCK; > > if (c->tls_shared.is_dtls) > - size = FFMIN(size, DTLS_get_data_mtu(c->ssl)); > + size = FFMIN(size, c->tls_shared.mtu); This is not the same value, no. DTLS_get_data_mtu returns the mtu minus the size of the DTLS header and footer, i.e. the maximum amount of data it can consume. Which is exactly what it's used for here. _______________________________________________ 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".