diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c index d7f8bf8a65..ce09e338cc 100644 --- a/libavfilter/vf_convolution.c +++ b/libavfilter/vf_convolution.c @@ -997,6 +997,9 @@ static av_cold int init(AVFilterContext *ctx) } else { return AVERROR(EINVAL); } + + if (s->copy[i] && (s->rdiv[i] != 1. || s->bias[i] != 0.)) + s->copy[i] = 0; } } else if (!strcmp(ctx->filter->name, "prewitt")) { for (i = 0; i < 4; i++) {