Skip to content

Commit

Permalink
avfilter/vf_convolve: Remove always-false format check
Browse files Browse the repository at this point in the history
These filters use ff_set_common_formats_from_list().

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
  • Loading branch information
mkver committed Sep 21, 2021
1 parent 9cffffd commit 9745435
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libavfilter/vf_convolve.c
Expand Up @@ -162,10 +162,6 @@ static int config_input_impulse(AVFilterLink *inlink)
av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
return AVERROR(EINVAL);
}
if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
return AVERROR(EINVAL);
}

return 0;
}
Expand Down

0 comments on commit 9745435

Please sign in to comment.