[FFmpeg-devel] [PATCH] avfilter/vf_gblur_vulkan: make sure init_filter() returns zero on success
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Thu Nov 18 16:53:12 EET 2021
From: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
libavfilter/vf_gblur_vulkan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_gblur_vulkan.c b/libavfilter/vf_gblur_vulkan.c
index 16c8bbb..8407bd1 100644
--- a/libavfilter/vf_gblur_vulkan.c
+++ b/libavfilter/vf_gblur_vulkan.c
@@ -124,7 +124,7 @@ static av_cold void init_gaussian_params(GBlurVulkanContext *s)
static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
{
- int err = 0;
+ int err;
char *kernel_def;
uint8_t *kernel_mapped;
FFSPIRVShader *shd;
@@ -295,6 +295,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
RET(ff_vk_create_exec_ctx(ctx, &s->exec, &s->qf));
s->initialized = 1;
+ err = 0;
fail:
av_free(kernel_def);
--
1.8.3.1
More information about the ffmpeg-devel
mailing list