Commit 36508355 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_bm3d: fix possible infinite loop

parent 0749082e
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment