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 D64874AB57 for ; Wed, 12 Jun 2024 22:22:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CD86368D9D9; Thu, 13 Jun 2024 01:22:25 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5EAC268D8C4 for ; Thu, 13 Jun 2024 01:22:16 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 959101BF205 for ; Wed, 12 Jun 2024 22:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1718230935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jDxSYbon7AN5LKQRi0nUtiCTVbs95J52/R4wrmELHdM=; b=UaeSH5AzTbg0ivLutlQX+A/hYm3WXPvq1lEDQUq0N8t5z6ms7egwD8+MZHIypM4FnWD7l2 MVVHhweFsl2XTpRU9xJK3tmnl4EYdVJxjpoDeuZC+yIHB7BlUMLxWu2WjpBP6AiRaQwL09 3g3QpogsiNbpS6AOFaniFcCFRajRHTxEdOqxmUNQvjG++jhTu1jPAOioAyUwZx9iGgtQCL QUSjz4YVljsWwDHJcHvscP+WzUFjlCfzrovCGPIsNFyBtBaG0zU/YB4QnyG7vLv220qqWZ TRtAx5+KSTBvKee14E8Gl1ToNhI1beqFSQMKHcgpINgY9HU86Bk6wDEdy6rebQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 13 Jun 2024 00:22:11 +0200 Message-ID: <20240612222212.2172147-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240612222212.2172147-1-michael@niedermayer.cc> References: <20240612222212.2172147-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_convolution_opencl: Assert that the filter name is one of the filters 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 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: Helps with: CID1439572 Uninitialized pointer read Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_convolution_opencl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c index 0eff9f40d3b..40938436f2b 100644 --- a/libavfilter/vf_convolution_opencl.c +++ b/libavfilter/vf_convolution_opencl.c @@ -20,6 +20,7 @@ #include "config_components.h" +#include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" #include "libavutil/mem.h" @@ -80,6 +81,8 @@ static int convolution_opencl_init(AVFilterContext *avctx) kernel_name = "prewitt_global"; } else if (!strcmp(avctx->filter->name, "roberts_opencl")){ kernel_name = "roberts_global"; + } else { + av_assert0(0); } ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle); CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to create " -- 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".