summaryrefslogtreecommitdiff
path: root/libavfilter/vf_bm3d.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-13 18:16:19 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-13 18:16:19 +0200
commit365083556ea7773604cca90dce729f988899a830 (patch)
tree3b337df1cfb60dac37d40d972e1a1a796002901a /libavfilter/vf_bm3d.c
parent0749082eb93ea02fa4b770da86597450cec84054 (diff)
avfilter/vf_bm3d: fix possible infinite loop
Diffstat (limited to 'libavfilter/vf_bm3d.c')
-rw-r--r--libavfilter/vf_bm3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c
index 04cc19ccee..3196b63884 100644
--- a/libavfilter/vf_bm3d.c
+++ b/libavfilter/vf_bm3d.c
@@ -748,7 +748,7 @@ static int filter_frame(AVFilterContext *ctx, AVFrame **out, AVFrame *in, AVFram
av_frame_copy_props(*out, in);
for (p = 0; p < s->nb_planes; p++) {
- const int nb_jobs = FFMIN(s->nb_threads, s->planeheight[p] / s->block_step);
+ const int nb_jobs = FFMIN(s->nb_threads, s->planeheight[p] / s->block_size);
ThreadData td;
if (!((1 << p) & s->planes) || ctx->is_disabled) {