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 A04F74B9E7 for ; Tue, 22 Jul 2025 12:38:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 66B0068D11B; Tue, 22 Jul 2025 15:37:11 +0300 (EEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B9C5F68CEEF for ; Tue, 22 Jul 2025 15:37:04 +0300 (EEST) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-23f8df98e41so4175755ad.0 for ; Tue, 22 Jul 2025 05:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753187823; x=1753792623; 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=OVbFmCjW+yhgCGiXvR38Y+YrXj67W/2BkUFJoGexFSYL5cFfut+ZebQx9vjTVFM3ZC PTTHulEB7LxJjwxwl5tQPVdwTJCzTibzdw53MC91jMssDBJxo96QjZqDIAyv8kZD84KK g3ynHgasxIqg091Zk8OA+JYmjL6x5velxo2x+FK3e+IR7mHUG/ClG3jidjf0M4ndHuaK DtoL6yijAk+ppJGwlhH2Kf2yz9rkhmA+qWSvjVlz8WLy+jFYN13R6Y124afwDR0WwHER aW5qukcMRBlWFXU7qrbmROFZVntb1J4QHoy+nurXsf5Eg81DKwwqDvJV/m/KG6/ylLT1 WtkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753187823; x=1753792623; 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=R+XRyNp0kX/cxR6k+UsbCKLUqq0gZ9lgN00zVYtCRpZJr77yR2kxfmdv0xY/jHAOwb mTK2xpA/ZS9rMPKYR/uP+V/+YpHlQMmBzJ2XUBubinTBOEDXuYvrdi0nQZW4lszYLku+ BKwEQAj+s63qjYRd/svsl0/k+NTihaHKdjnFKh5CvEoTKQ4FMM+4C1b+h3u0uneFj5RV W8lvG3RtXOahE2L6nXixBh/dNR8JyHiaVoBKLsVzRQGyHBjwyT1IbY/W+4Hw2hmmSMfH on0mwsKvmx7O5uZlA+YsWsaO0e9YELxhp3i/z7f8t2wotAcVdoiioxa4nFvu9Scv36U/ 8xTA== X-Gm-Message-State: AOJu0Yy+ZhOdogM3Qa9xF/lbjdrfoZTJ4wVJF7JHfKlPxziSIACOyXOO mHuZep22wchFp/E59lSyKpvzMqWenF6X892kCFFkRzGnecF8DzrchVELwdE7xBHZrec= X-Gm-Gg: ASbGncseVos8NdLTb7koQxq4Tgm1LBCNqIxKhQuuaO5NeZNBidCtx+6dcBVKEyimr79 spXRT6kKPTwbl1T+LJ9J1zPplpmjx/N5vWCbLFKdl2ptuM+WLTp9bhH82eld8HjGl84NzLANa6/ fcDJrDGtKi1KwunGnyZ2psOrm2h5rfW1lN1ipCh4tVehfYrSbIHkjlDa3sW7CO37VvRD3Zir2d8 XrWfvSLxphUHOxW7YVHHuU7SgxqU0CKiRg8fPmEumlQxhQmx60L7op/3YWAM9XNErlmNatoVXa9 7JyiclbcN5QBIFilf1GxpEy/YQgy6Q32acHL+e5YzqyynJKVj6+Y2cQzRAbJWcfflqVbFcz2DHE SWbSc8kk5DeZ6KybAZ6Fj5pvtSwy8UFT4xaBkf+k4tfXscQ== X-Google-Smtp-Source: AGHT+IGPQqRQDIMlo+2wvVcRg4bDxbM8B7GYJ1bGvR64orlOzpRPFyJiPCyLDX6sLpCf3t0ILRegrw== X-Received: by 2002:a17:902:e802:b0:237:e3a0:9d63 with SMTP id d9443c01a7336-23e2576c517mr328098285ad.43.1753187822842; Tue, 22 Jul 2025 05:37:02 -0700 (PDT) Received: from localhost.localdomain ([182.126.128.169]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23e3b60edbasm75740715ad.70.2025.07.22.05.37.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Jul 2025 05:37:02 -0700 (PDT) From: Jack Lau X-Google-Original-From: Jack Lau To: ffmpeg-devel@ffmpeg.org Date: Tue, 22 Jul 2025 20:36:10 +0800 Message-ID: <20250722123616.53164-10-jacklau1222@qq.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250722123616.53164-1-jacklau1222@qq.com> References: <20250722123616.53164-1-jacklau1222@qq.com> MIME-Version: 1.0 X-Unsent: 1 Subject: [FFmpeg-devel] [PATCH v5 09/15] 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".