aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2023-06-02 11:42:46 +0200
committerLynne <dev@lynne.ee>2023-06-07 23:59:06 +0200
commitd8c7fea8ef04e9861ed701bb032f1651cc501ae2 (patch)
tree122ec8ecbfad82e438cd505e1ad7252298f91d12
parentdae393fe724ab3c18f9d048013a1457cb06d4264 (diff)
downloadffmpeg-d8c7fea8ef04e9861ed701bb032f1651cc501ae2.tar.gz
lavfi/vf_blend_vulkan: fix leak on error
-rw-r--r--libavfilter/vf_blend_vulkan.c3
1 files changed, 2 insertions, 1 deletions
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));
}