Commit fe0fdc51 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_convolution: disable fast path if rdiv/bias are different from defaults

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 4e1307c0
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment