diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-08-27 22:44:42 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-08-29 16:27:09 +0200 |
commit | a0a57072c93be397afe346d03b907397d6b88396 (patch) | |
tree | 1b3ba1437f6eaab36f9747bf88f3d9e425a69f40 /libavfilter/vf_dctdnoiz.c | |
parent | 5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b (diff) |
avfilter: make use of ff_filter_get_nb_threads
Diffstat (limited to 'libavfilter/vf_dctdnoiz.c')
-rw-r--r-- | libavfilter/vf_dctdnoiz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_dctdnoiz.c b/libavfilter/vf_dctdnoiz.c index 6957f19aea..62763bf349 100644 --- a/libavfilter/vf_dctdnoiz.c +++ b/libavfilter/vf_dctdnoiz.c @@ -507,9 +507,9 @@ static int config_input(AVFilterLink *inlink) inlink->h - s->pr_height); max_slice_h = s->pr_height / ((s->bsize - 1) * 2); - s->nb_threads = FFMIN3(MAX_THREADS, ctx->graph->nb_threads, max_slice_h); + s->nb_threads = FFMIN3(MAX_THREADS, ff_filter_get_nb_threads(ctx), max_slice_h); av_log(ctx, AV_LOG_DEBUG, "threads: [max=%d hmax=%d user=%d] => %d\n", - MAX_THREADS, max_slice_h, ctx->graph->nb_threads, s->nb_threads); + MAX_THREADS, max_slice_h, ff_filter_get_nb_threads(ctx), s->nb_threads); s->p_linesize = linesize = FFALIGN(s->pr_width, 32); for (i = 0; i < 2; i++) { |