avfilter/vf_mix: fix multiple threads usage

release/5.1
Paul B Mahol 3 years ago
parent 126d5d3b5f
commit 3415028d13
  1. 4
      libavfilter/vf_mix.c

@ -243,7 +243,7 @@ static int process_frame(FFFrameSync *fs)
td.in = in;
td.out = out;
ff_filter_execute(ctx, mix_frames, &td, NULL,
FFMIN(s->height[0], s->nb_threads));
FFMIN(s->height[1], s->nb_threads));
return ff_filter_frame(outlink, out);
}
@ -438,7 +438,7 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFrame *in)
td.out = out;
td.in = s->frames;
ff_filter_execute(ctx, mix_frames, &td, NULL,
FFMIN(s->height[0], ff_filter_get_nb_threads(ctx)));
FFMIN(s->height[1], s->nb_threads));
return ff_filter_frame(outlink, out);
}

Loading…
Cancel
Save