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 4D0AE44B0D for ; Mon, 21 Jul 2025 11:32:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id DFAAA68C375; Mon, 21 Jul 2025 14:31:07 +0300 (EEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 126C068C30D for ; Mon, 21 Jul 2025 14:31:06 +0300 (EEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-747c2cc3419so3112965b3a.2 for ; Mon, 21 Jul 2025 04:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753097464; x=1753702264; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eW7OayB7NxWe6CxnquM0xLW5cWEN0JDME5C2kJYSeQc=; b=LkJoq22x0v49CzlmrKedNGO05dnTz5ICVpqdmVnxB5r5xbX58XxzPEj3iw0s5HTO8a WpHKFhceq0ccf9HerYNPac55TLzDMCSlK4Ze6YP72UoSvKZacZr+XwbF99uAe7BBgKAo QvGa584AUGtSwhnxf7CA+BqaTpNlVYp3ISwqw4qK67qa48eqltBCt3950PzwlgFCVNC8 3Q1fGW/HMcKrKFt7oBoFC27OUcZrLB0hhPtyFyscL8jSoWI/gvHZ5XwWVxtxGq/A+iAy bVPpoh8enM3XmoUgb50Xyli+qYefTUSfPt40LBkJ3WG/ZvXmyOkWNX862Vt8ptAaQiJT YQpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753097464; x=1753702264; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eW7OayB7NxWe6CxnquM0xLW5cWEN0JDME5C2kJYSeQc=; b=ghewgN6us46TH1gYlj0QRSSlT8ZDtmUA/0iG8VrE1Yi2dhSoceVLu7/SiVebbt6vct DtcY0PsefNxAY/u2yI+M0LLxMuYDjTh0zJxrObOMyDOajvj+BAedh63AiBt58NvgVjHU WqW3UsWwSk9ZF7XDfU9ZeRG7T/bPWlsw6nDmUTMdlKSdJ/C/8YJmXXl+xAbmNyhlAdIT +MXN2+Wl4BY/cLNT4LK8/HekJz7yJ+RyXCAFlAQesv4jv3jQKXPaOmWiUoG8omO1CHfo qonbhu9O4LSyB4AsXFcY+lUv4IlxxtW+ALz/vqQKLBWlaxGmRGWK5gbDU3ekfs0aBhxW vCSw== X-Gm-Message-State: AOJu0Yxp7VSuWHolcYbwd4RNZfqCa27DYWBahlqKOdNhRgF21BG1sno8 DvoPaEg7/RQhymKZM6nLo0VxBqHj8dTK7ijMUo9CjUXsWGqXgYpnG6/s6eHiQGzR X-Gm-Gg: ASbGncv+S/7KseRe3OK6H9f6gcvC6ey1c6wph3bF9DLm4fRgcynxBWjsmAl9Y3F5aBs kJdoQbW/c8XkCmVPEYJ33lfHfY5qJAJNEuNmDg2/CVDFh2KWijLOlxVZzoQWjtNHcQ5Xc4GTSd6 hRfRGPucIngMZbdCbThGwqMtt3CPsgtVjwihNS6B0RfOTIHvzL8jNgz6+z9W1unjPOcxrXg2s0y t/DWx/kz7wFloGGNQB7lQ0cmS6EOWVlaCWeb+CYCjnp7TXl2T0dAi/uzSGlNlytHLDj7y4sLVZ2 k7zRNwk251xIduhnJJckAtgspX3z3Ot18RXDAlCWsBo/SE6841s+CXvkMVRwsUoJ3iVbGjcc3cv w5A84qIsyAz99OD1ha3VPl9b1cZxKdPOXxhikRCZ21HA= X-Google-Smtp-Source: AGHT+IFqyLDY9sSMzjHOqEWL7am+zBfJ3rF/oqr2Z5q51/qUekvz+uSONaqxQJDh5P3T/OOjimf72g== X-Received: by 2002:a05:6a00:2313:b0:749:540:ca72 with SMTP id d2e1a72fcca58-759ae1fa961mr19437716b3a.24.1753097464082; Mon, 21 Jul 2025 04:31:04 -0700 (PDT) Received: from localhost.localdomain ([5.34.218.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-759cbd68350sm5630277b3a.148.2025.07.21.04.31.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 21 Jul 2025 04:31:03 -0700 (PDT) From: Jack Lau X-Google-Original-From: Jack Lau To: ffmpeg-devel@ffmpeg.org Date: Mon, 21 Jul 2025 19:30:20 +0800 Message-ID: <20250721113023.91931-10-jacklau1222@qq.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250721113023.91931-1-jacklau1222@qq.com> References: <20250721113023.91931-1-jacklau1222@qq.com> MIME-Version: 1.0 X-Unsent: 1 Subject: [FFmpeg-devel] [PATCH v4 09/11] avformat/whip: check the peer whether is ice lite 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: Jack Lau 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: See RFC 5245 Section 4.3: If an agent is a lite implementation, it MUST include an "a=ice-lite" session-level attribute in its SDP. If an agent is a full implementation, it MUST NOT include this attribute. Signed-off-by: Jack Lau --- libavformat/whip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/whip.c b/libavformat/whip.c index fe35ab7205..d37a61042f 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -248,6 +248,7 @@ typedef struct WHIPContext { */ char *sdp_offer; + int is_peer_ice_lite; /* The ICE username and pwd from remote server. */ char *ice_ufrag_remote; char *ice_pwd_remote; @@ -870,6 +871,8 @@ static int parse_answer(AVFormatContext *s) for (i = 0; !avio_feof(pb); i++) { ff_get_chomp_line(pb, line, sizeof(line)); + if (av_strstart(line, "a=ice-lite", &ptr)) + whip->is_peer_ice_lite = 1; if (av_strstart(line, "a=ice-ufrag:", &ptr) && !whip->ice_ufrag_remote) { whip->ice_ufrag_remote = av_strdup(ptr); if (!whip->ice_ufrag_remote) { -- 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".