From patchwork Sun Jul 14 12:02:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Izen X-Patchwork-Id: 50537 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:2298:b0:482:c625:d099 with SMTP id fp24csp1872581vqb; Sun, 14 Jul 2024 10:31:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUajXtyie0rkSBhwO2YxK3BjfHIRyIdjpJUtRIJ+6g/ye/fVoRwykqh7c03jXr2c90+4ES8u9x+uVg9hy5vfbRtVcLC0LRsVL133Q== X-Google-Smtp-Source: AGHT+IHn/P++jSMX8OFMUPa+7wW97A9Pebup37IUNtfalm3cRBoqy7kvgLp6sNHepTW+NjiqP+WK X-Received: by 2002:a05:6512:1386:b0:52c:d628:c77c with SMTP id 2adb3069b0e04-52eb99d275fmr16552366e87.43.1720978306207; Sun, 14 Jul 2024 10:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720978306; cv=none; d=google.com; s=arc-20160816; b=KovTdk9NxK0bHDzenK/gztx7Hw/jgYvmf+dtWeVJ3WNPgIu36xD/LIP0GCNkLYpZnb pf6Op19XZORl+H/cbqz6xaezLPbtkupD+O2nu+kwhNw8S1ZQFCrQhLaPm2y2nFD28mgi 1EfyGzXvG1nCS3AVmXEdaE9qZ0xQ4i3qU3rzYhroHCprWZO1reZ/DohjyFuGWC3fCzni EAFGX08tb++rw8j3d1Jwu25FcuGbaZcDfy6ATSGz47+Kz0H/8MZd7m9KzNv8xD3iJYSb HkzHXBTvhvlHXO7H2fTKDSBBjZUdPmoZYJY2/1Uc5AmlXn7i7Lv7rIpmCz1W75cA/86E Ha1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=lZW1SS41pVbeE15jglPN0OtKgONU3Iq47KKFvncT/Yg=; fh=+bdjGe20eEUjtjncwA1dnEEVYNfJL4vyhV+sIRR4l+g=; b=QCXFSwCOaH98JZlPvBMbMHpl3QvQl8VrdO1n7SASbNI+VY3KJXxZ2HauWS8KpFHNPe gwHnVrjmK6IGmQKV3j6WYUM2XYRRshutT44aPkEu0OSlxBwyxkpUlOIEPhQOqwXumomV 2IKHe7za10DOiRWo6AcuaiuNA/Lelu41nKnptXe/cFAn/uA8QOV6RQulAGNF0G5HsHj2 VnkJPGHo3SmW88wZRBxBI7bTlRKBrm+PQ2EuyZl7f8N4Jz00pxw56lUbC8mMcY1vu7OO qOLKpqPSFaeObSVGTMvV0SteFTtZnrAt8LBsBmr4idmUQyuJE+7AEk4g0W6glTfSc5FM M4zg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=DXXTVN28; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a79bc801662si161411266b.650.2024.07.14.10.31.45; Sun, 14 Jul 2024 10:31:46 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=DXXTVN28; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1C6B168D6E3; Sun, 14 Jul 2024 15:03:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 416B168D7C0 for ; Sun, 14 Jul 2024 15:02:59 +0300 (EEST) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-254c411d816so387133fac.1 for ; Sun, 14 Jul 2024 05:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720958577; x=1721563377; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kIVsj4RNHMovwQ10RL3925HOMhdlrw7ZQAd8mmFS+Pw=; b=DXXTVN28nIlFetA7f17QObWfvNB0kpQLBnmn0Z7rd0s9snLMT6fQNQyVcfxKIcM0/N f+krm0kxJw32/7yHXC2W9vcB8uAOHa5pOsg19lvXql4zi+qoa6xtcMNEhzYtmfrv2YSz TuKbmQs0rfkbR/6s2iy0jnWR2CdiXVnxHUHlQoRLg3IGw/cx6xa+pFuC8bbtocliaZAi afwnRsTD8DLjtNNJpdUPdDEAq1ykHijMpEoo3T0nejHKd8YO/tMC5zXvIbn+lnMPap5G ZXjm92ZLCSlpGWEFHfjo7yhevrsctpAQ73Im6NzYS7i+ydzCQc2iJusGy4pVrb8g80xC FLMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720958577; x=1721563377; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kIVsj4RNHMovwQ10RL3925HOMhdlrw7ZQAd8mmFS+Pw=; b=tWugfuOVbSd1a5Y0kj6/sByfyFbHdd6rp169Jaaxe1ubMWU9NQvYYQugsdn/TVJok8 DeB2TFWMbaw0+usYhRXfzEdXl8GJqhYcQlX0reSej5uYOAmkhY53qrBVpnBmy9zwOnz5 M7d/Ler3MMGp5I1KbZiSovj3Yuy2j6bujxKMEZ6/Kulp2swakHLerpFgWrd6IGDaPLBS d4ogB7Fvg+e/U1z0070UuCg9jkXQsGQIOgs7NCiEtg0ytoq1MUnpcKBj6+wv/CW7hM94 Fs5UtUfqJdVzgfQ/GOot3oSVYW8kXlwRSqs0v9fU1+vc7gbFBJ9qothTsiByFfKzK3Wj 8H/g== X-Gm-Message-State: AOJu0Yy6cHCRz2n2xqnZr7WNAu5aPuGWl3fkTzVi5Yw+qsOESfLqdK+E DHsnbmWxXTZPF5TljY89dPUcUzQcYwIKJu+4tr5lhQajjhat57O0J9VfLw== X-Received: by 2002:a05:6808:1598:b0:3da:ac08:b89c with SMTP id 5614622812f47-3daac08b8bamr4843618b6e.7.1720958576995; Sun, 14 Jul 2024 05:02:56 -0700 (PDT) Received: from gauss.local (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a160c63f83sm116816685a.85.2024.07.14.05.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 05:02:56 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Sun, 14 Jul 2024 08:02:55 -0400 Message-ID: <20240714120255.227907-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/af_channelsplit: fix declaration-after-statement warning 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: Leo Izen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Eo2rDZc77EsX Declare AVFrame *buf_out with the rest of the declarations to fix a compiler warning about Declarations after Statements in ISO C90. Signed-off-by: Leo Izen --- libavfilter/af_channelsplit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index 43b2667750..a8942214ab 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -156,10 +156,11 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf) const int i = FF_OUTLINK_IDX(outlink); enum AVChannel channel = av_channel_layout_channel_from_index(&buf->ch_layout, s->map[i]); int ret; + AVFrame *buf_out; av_assert1(channel >= 0); - AVFrame *buf_out = av_frame_clone(buf); + buf_out = av_frame_clone(buf); if (!buf_out) return AVERROR(ENOMEM);