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 1D3944D8FA for ; Wed, 2 Jul 2025 17:00:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 2651668D4B3; Wed, 2 Jul 2025 19:57:35 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id C13EE68D164 for ; Wed, 2 Jul 2025 19:57:10 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 2050627FFCCAB; Wed, 02 Jul 2025 18:57:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1751475427; 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=b5+NxS7v4q1jEr/m55ol1BpgIS0ndOXlOimosHB2skQ=; b=bB4GQ3mqgv8ghnGXjmm7G/Bv6iXjYZ2cvpclBcyfpdmhU6TVR/NHDQe4PmUtjCoMoh4aZL xUh6MeV4jAupRg9Cv4Heb9Pt8INGFjqIYFlPWltMEj1vt78UV+1KhmxTmd1SJHiE8L+OoH RU68DYpJPXDHbVqWv1Bje5XahT9a5p8K/migtHfpDbUS2qbpiEwyeTwgc7Sa24FswvO60f uBaRBAp6lI58CLSHkdlKkbfaB5VmObnk/D5p4Klb1Kxep5h/JHve8m9cyuFdgBkfp4BYaj dJxrc6CpjohDyHY/V9Gdt6Xjwc52uzVjHAKz/qoRJwMDcLU0J0YZmFdYjfnQ6Q== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Jul 2025 18:56:37 +0200 Message-ID: <20250702165655.1325-10-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 09/18] avformat/udp: don't override 0 localport 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/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index c1ebdd1222..30f075de8e 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -780,7 +780,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) goto fail; } - if ((s->is_multicast || s->local_port <= 0) && (h->flags & AVIO_FLAG_READ)) + if ((s->is_multicast || s->local_port < 0) && (h->flags & AVIO_FLAG_READ)) s->local_port = port; udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr); -- 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".