[FFmpeg-cvslog] avfilter/vf_convolution: disable fast path if rdiv/bias are different from defaults
Paul B Mahol
git at videolan.org
Fri Mar 23 17:24:31 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Mar 23 16:21:38 2018 +0100| [fe0fdc51b56e061ee00ef237c218e18b99468878] | committer: Paul B Mahol
avfilter/vf_convolution: disable fast path if rdiv/bias are different from defaults
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe0fdc51b56e061ee00ef237c218e18b99468878
---
libavfilter/vf_convolution.c | 3 +++
1 file changed, 3 insertions(+)
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++) {
More information about the ffmpeg-cvslog
mailing list