diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-03-23 16:21:38 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-03-23 16:21:38 +0100 |
commit | fe0fdc51b56e061ee00ef237c218e18b99468878 (patch) | |
tree | e045e1dc609580f0e2d97fdeedb6e55268ff36b8 /libavfilter | |
parent | 4e1307c0f76d015941a1217bcd44a20f25e04fad (diff) | |
download | ffmpeg-fe0fdc51b56e061ee00ef237c218e18b99468878.tar.gz |
avfilter/vf_convolution: disable fast path if rdiv/bias are different from defaults
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_convolution.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++) { |