mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
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:
parent
4e1307c0f7
commit
fe0fdc51b5
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user