summaryrefslogtreecommitdiff
path: root/libavfilter/vf_bwdif.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-27 22:44:42 +0200
committerPaul B Mahol <onemda@gmail.com>2016-08-29 16:27:09 +0200
commita0a57072c93be397afe346d03b907397d6b88396 (patch)
tree1b3ba1437f6eaab36f9747bf88f3d9e425a69f40 /libavfilter/vf_bwdif.c
parent5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b (diff)
downloadffmpeg-a0a57072c93be397afe346d03b907397d6b88396.tar.gz
avfilter: make use of ff_filter_get_nb_threads
Diffstat (limited to 'libavfilter/vf_bwdif.c')
-rw-r--r--libavfilter/vf_bwdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c
index 595b82586c..b691983611 100644
--- a/libavfilter/vf_bwdif.c
+++ b/libavfilter/vf_bwdif.c
@@ -278,7 +278,7 @@ static void filter(AVFilterContext *ctx, AVFrame *dstpic,
td.h = h;
td.plane = i;
- ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ctx->graph->nb_threads));
+ ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx)));
}
if (!bwdif->inter_field) {
bwdif->inter_field = 1;