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