lavfi/vf_blend_vulkan: fix leak on error

pull/389/head
Marvin Scholz 2 years ago committed by Lynne
parent dae393fe72
commit d8c7fea8ef
  1. 3
      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));
}

Loading…
Cancel
Save