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

avfilter/vf_bm3d: make sure nb_jobs is at least 1

parent ec9d48da
......@@ -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_size);
const int nb_jobs = FFMAX(1, 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