From b6de483cb432277348f735fc3cba4567fb94eef0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 21 Sep 2021 06:09:26 +0200 Subject: avfilter/vf_premultiply: Remove always-false format check These filters use ff_set_common_formats_from_list(). Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_premultiply.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavfilter/vf_premultiply.c') diff --git a/libavfilter/vf_premultiply.c b/libavfilter/vf_premultiply.c index a76c08405c..ada249fc55 100644 --- a/libavfilter/vf_premultiply.c +++ b/libavfilter/vf_premultiply.c @@ -700,10 +700,6 @@ static int config_output(AVFilterLink *outlink) if (!s->inplace) { alpha = ctx->inputs[1]; - if (base->format != alpha->format) { - av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n"); - return AVERROR(EINVAL); - } if (base->w != alpha->w || base->h != alpha->h) { av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " -- cgit v1.2.3