From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 9293C4BB0A for ; Sun, 14 Jul 2024 12:03:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CC32C68D9B2; Sun, 14 Jul 2024 15:03:05 +0300 (EEST) 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-Google-Smtp-Source: AGHT+IHh+LFUIuKD0XYaZshA8JLaGXNqT02qei7rCWhaimMb4v63UFhQ8Jm+1+aMLt4rJKK3uPsSqQ== 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 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: 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); -- 2.45.2 _______________________________________________ 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".