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 C13674D8D5 for ; Wed, 2 Jul 2025 16:57:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 90F6868D1E7; Wed, 2 Jul 2025 19:57:13 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 7093C68CC70 for ; Wed, 2 Jul 2025 19:57:05 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id DD54D27FFCD31; Wed, 02 Jul 2025 18:57:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1751475424; 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=IXeTu6Rr5OyF8TkCidUfKn7qzUcNMarO/gzRpTuYBCw=; b=UekOUisS6IqcVlJznDk6UGgh1IVP8gJzFVEo9ivh9vkiwsSxw0RDPttAYCVyEqvS1s7U0v h9Hz7cuFY7ra9yEyUoFdbm46RY03piOt3q9Ls6+lv7lA+8FoI7/u53fzrU/0DSuE8ZrwdY fizEgeTLPg4F3tImiopN2qaWZE83pIDxHWtcpe+bDu+OqIZQu5uofncfRgFCHDXoR0D23E Ziwy/U5o0zGVF41qe0IBY+2VtpP8gALo0kEU8pJXJRUzbyIxbVw8ofyXOYK4reR/xcNRW7 hiU1a5VmavgJvWovtTgwWEoZ+KDd9vBO8i8XYXLIsZWCUS1wzsROKGlrfB24Sw== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Jul 2025 18:56:30 +0200 Message-ID: <20250702165655.1325-3-timo@rothenpieler.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250702165655.1325-1-timo@rothenpieler.org> References: <20250702165655.1325-1-timo@rothenpieler.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 02/18] avformat/whip: use av_dict_set_int for int 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/whip.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libavformat/whip.c b/libavformat/whip.c index 5fdbd6949d..a6cdccc21c 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -1221,7 +1221,6 @@ static int ice_dtls_handshake(AVFormatContext *s) int64_t starttime = av_gettime(), now; WHIPContext *whip = s->priv_data; AVDictionary *opts = NULL; - char str[8]; char buf[256], *cert_buf = NULL, *key_buf = NULL; if (whip->state < WHIP_STATE_UDP_CONNECTED || !whip->udp) { @@ -1288,8 +1287,7 @@ next_packet: whip->ice_ufrag_remote, whip->ice_ufrag_local, ret, ELAPSED(whip->whip_starttime, av_gettime())); ff_url_join(buf, sizeof(buf), "dtls", NULL, whip->ice_host, whip->ice_port, NULL); - snprintf(str, sizeof(str), "%d", whip->pkt_size); - av_dict_set(&opts, "mtu", str, 0); + av_dict_set_int(&opts, "mtu", whip->pkt_size, 0); if (whip->cert_file) { av_dict_set(&opts, "cert_file", whip->cert_file, 0); } else @@ -1299,10 +1297,9 @@ next_packet: av_dict_set(&opts, "key_file", whip->key_file, 0); } else av_dict_set(&opts, "key_buf", whip->key_buf, 0); - av_dict_set(&opts, "fingerprint", whip->dtls_fingerprint, 0); - av_dict_set(&opts, "use_external_udp", "1", 0); - av_dict_set(&opts, "listen", "1", 0); + av_dict_set_int(&opts, "use_external_udp", 1, 0); + av_dict_set_int(&opts, "listen", 1, 0); /* If got the first binding response, start DTLS handshake. */ ret = ffurl_open_whitelist(&whip->dtls_uc, buf, AVIO_FLAG_READ_WRITE, &s->interrupt_callback, &opts, s->protocol_whitelist, s->protocol_blacklist, NULL); -- 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".