diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-09-10 22:06:16 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-09-10 22:11:38 +0200 |
commit | 09cce812453f989a0537c62b6db1020ea266553d (patch) | |
tree | 5dbd885bcbf6c37af94bce41620b5a5cfd4f999f | |
parent | 09a8e5debb284984871bd3eabd139b7207eedcdc (diff) | |
download | ffmpeg-09cce812453f989a0537c62b6db1020ea266553d.tar.gz |
avfilter/vf_gblur: allow filtering with zero horizontal sigma
-rw-r--r-- | libavfilter/vf_gblur.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c index bb4c342116..ca1dcb3dab 100644 --- a/libavfilter/vf_gblur.c +++ b/libavfilter/vf_gblur.c @@ -125,7 +125,7 @@ static void gaussianiir2d(AVFilterContext *ctx, int plane) const int nb_threads = ff_filter_get_nb_threads(ctx); ThreadData td; - if (s->sigma <= 0 || s->steps < 0) + if (s->sigma < 0 || s->steps < 0) return; td.width = width; @@ -247,7 +247,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) uint16_t *dst16 = (uint16_t *)out->data[plane]; int y, x; - if (!s->sigma || !(s->planes & (1 << plane))) { + if (!(s->planes & (1 << plane))) { if (out != in) av_image_copy_plane(out->data[plane], out->linesize[plane], in->data[plane], in->linesize[plane], |