Browse Source

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.0
Paul B Mahol 7 years ago
parent
commit
fe0fdc51b5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/vf_convolution.c

+ 3
- 0
libavfilter/vf_convolution.c 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++) {


Loading…
Cancel
Save