diff mbox series

[FFmpeg-devel] lavfi/vf_blend_vulkan: fix leak on error

Message ID 20230602094246.3596-1-epirat07@gmail.com
State Accepted
Commit d8c7fea8ef04e9861ed701bb032f1651cc501ae2
Headers show
Series [FFmpeg-devel] lavfi/vf_blend_vulkan: fix leak on error | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marvin Scholz June 2, 2023, 9:42 a.m. UTC
---
 libavfilter/vf_blend_vulkan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_blend_vulkan.c b/libavfilter/vf_blend_vulkan.c
index 530f4981c2..717efcee41 100644
--- a/libavfilter/vf_blend_vulkan.c
+++ b/libavfilter/vf_blend_vulkan.c
@@ -249,7 +249,8 @@  static int blend_frame(FFFrameSync *fs)
         if (top_fc->sw_format != bottom_fc->sw_format) {
             av_log(avctx, AV_LOG_ERROR,
                    "Currently the sw format of the bottom video need to match the top!\n");
-            return AVERROR(EINVAL);
+            err = AVERROR(EINVAL);
+            goto fail;
         }
         RET(init_filter(avctx));
     }