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 ESMTPS id 5298A4D197 for ; Mon, 17 Feb 2025 19:13:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 179FB68C0E4; Mon, 17 Feb 2025 21:13:12 +0200 (EET) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F333E68BC32 for ; Mon, 17 Feb 2025 21:13:04 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; s=202405r; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1739819584; bh=ydd0cYNVjJITp8YQe8m3kIe kOrDNBMTSJn/LzDo4FxI=; b=F2zu4Q4Y5W6RPiT5U+ehJbO2JchqA30VTx9NA/wIHnmqdTxEZz TOgucKYg00GBOVp/U0GsRyV7lLdy1/zJQOT71e9B+Syw+dSC6G+he9JJxjGCphXykf86EuYtKWk tBsks/eDeXcJdmPu6OGb7nhheuiIy0xw5uyd3SnS4D6KKnT351g+74A2YIQds9BrocLrFRKovGA 3uL/CGR+cRRPunSqQ3TDq5X9vyAiwRT4+UV4Mu2qJ1D87IoF6J27KW0lfCm4kQZS+EYQnDbYdcw lmAxyHuzdjTkPzVWrMftKac0DDJsCGgXxLJNL2oZXpgfm6ftqJxoezITkxfL8PSGTTA==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1739819584; bh=ydd0cYNVjJITp8YQe8m3kIe kOrDNBMTSJn/LzDo4FxI=; b=OWUXGW2MF50Vr9ZUR3keGHNOPMLC3VqBHonqsBz5gqTgrOhslA GiCLLxMhgVHxvPn8+rbAasSnkNJvqyBZZmCw==; From: Lynne To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Feb 2025 20:12:57 +0100 Message-ID: <20250217191303.93014-1-dev@lynne.ee> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avgblur_vulkan: fix duplicated variable error when planes=0 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: Lynne 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: --- libavfilter/vf_avgblur_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_avgblur_vulkan.c b/libavfilter/vf_avgblur_vulkan.c index 5a7012531b..156278dd78 100644 --- a/libavfilter/vf_avgblur_vulkan.c +++ b/libavfilter/vf_avgblur_vulkan.c @@ -127,6 +127,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) GLSLC(0, void main() ); GLSLC(0, { ); GLSLC(1, ivec2 size; ); + GLSLC(1, vec4 res; ); GLSLC(1, const ivec2 pos = ivec2(gl_GlobalInvocationID.xy); ); for (int i = 0; i < planes; i++) { GLSLC(0, ); @@ -136,7 +137,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) if (s->planes & (1 << i)) { GLSLF(1, distort(pos, %i); ,i); } else { - GLSLF(1, vec4 res = imageLoad(input_img[%i], pos); ,i); + GLSLF(1, res = imageLoad(input_img[%i], pos); ,i); GLSLF(1, imageStore(output_img[%i], pos, res); ,i); } } -- 2.47.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".