Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-03-23 18:21:38 +0300
committerPaul B Mahol <onemda@gmail.com>2018-03-23 18:21:38 +0300
commitfe0fdc51b56e061ee00ef237c218e18b99468878 (patch)
treee045e1dc609580f0e2d97fdeedb6e55268ff36b8 /libavfilter/vf_convolution.c
parent4e1307c0f76d015941a1217bcd44a20f25e04fad (diff)
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/vf_convolution.c')
-rw-r--r--libavfilter/vf_convolution.c3
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++) {