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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2018-03-23 16:21:38 +01:00
parent 4e1307c0f7
commit fe0fdc51b5

View File

@ -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++) {