From patchwork Thu Nov 2 23:50:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 44484 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:671c:b0:181:818d:5e7f with SMTP id q28csp218835pzh; Thu, 2 Nov 2023 16:50:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8HgDUKZVKltuXwyX/tqa/ibWAjCNFWtd8MKDBqeMkoxI7AXk4ub58tOuhQFqiliLMJFdj X-Received: by 2002:a17:906:b49:b0:9ae:50ec:bd81 with SMTP id v9-20020a1709060b4900b009ae50ecbd81mr864529ejg.21.1698969038435; Thu, 02 Nov 2023 16:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698969038; cv=none; d=google.com; s=arc-20160816; b=QuwkXyJqKC1wpoeh2BnIPh7Y9vqaUtHubrr9ivm4/hUiBuB1PUN16KgzDdNl68+2ra 9vmm+IiDFvw18A+wcU43cirrHygT5IznRqfiEjNL6LWMtE2KWsLh78urmaXZtVurhiRQ dGnSVHFsWiid7srmrLqAKTpBwgzwkcO+HiwSsVi9FD+gVnbCAe5XUn4F9YBdY1ODizrn ghorb1B1E7HCweL42XO/age5UYZRTKRrnj9voqBwQ9y+RP8xuucru8ltsSxePrXOQSsQ szgJQxsOs8qDYoYUxJnlHuDV5FEvOS63ZtkRkQGr/0PEZmqicJ1ksjLrkyQ1D20eHORF PPqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to; bh=YYcVddb+MRYY+YTCvNRURsxbg79A+45WwI6kf42Y2ho=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=AqY4aKd1Tx9p/Q7g5l7/4a/tlDhBGPpIw0HRT+gHG57Pi9jCkrA91c9D8TatiQi2Fr Up6PqalcyyuKnHB60MnXQuXq81nYhEEe1Kr8cWA9uHY3SnzvInEEuLybN6usRCo1K1i2 3upIw5C2hOSYXpYNVs7ZkKDhR3iJ94RkkvjBmO7l0vGgUE9G1SWrcxSVL+Sr5JBmXOvl dZzBaA7U1lOMBg1k1g/yIKx4LKOcZgPwnp6EDmpiIf4P30OuTm7CA2ITOOZ99A0Zno7A WE1GMCVsed1y8TJHZEXAOtM9ltZQdZDxLp/DxEFRwuXeKeYN9QS+JdYCUACVj+k75rYH Sekg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sa26-20020a1709076d1a00b009d3b7444e83si281096ejc.988.2023.11.02.16.50.38; Thu, 02 Nov 2023 16:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6697A68CCE8; Fri, 3 Nov 2023 01:50:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EB4F068CCDC for ; Fri, 3 Nov 2023 01:50:18 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2CACDE0009 for ; Thu, 2 Nov 2023 23:50:18 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 3 Nov 2023 00:50:14 +0100 Message-Id: <20231102235016.3935-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231102235016.3935-1-michael@niedermayer.cc> References: <20231102235016.3935-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/4] avfilter/buffersink: cuddle () closer around = 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: hJ/DWI6UM0ZB Signed-off-by: Michael Niedermayer --- libavfilter/buffersink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 9426ded7ee3..ca2af1bc077 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -293,7 +293,7 @@ static int asink_query_formats(AVFilterContext *ctx) cleanup_redundant_layouts(ctx); for (i = 0; i < NB_ITEMS(buf->channel_layouts); i++) if ((ret = av_channel_layout_from_mask(&layout, buf->channel_layouts[i])) < 0 || - (ret = ff_add_channel_layout(&layouts, &layout) < 0)) + (ret = ff_add_channel_layout(&layouts, &layout)) < 0) return ret; for (i = 0; i < NB_ITEMS(buf->channel_counts); i++) { layout = FF_COUNT2LAYOUT(buf->channel_counts[i]);