diff mbox series

[FFmpeg-devel] avfilter/vf_gblur_vulkan: make sure init_filter() returns zero on success

Message ID 1637247192-31104-1-git-send-email-lance.lmwang@gmail.com
State New
Headers show
Series [FFmpeg-devel] avfilter/vf_gblur_vulkan: make sure init_filter() returns zero on success | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Limin Wang Nov. 18, 2021, 2:53 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vf_gblur_vulkan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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);