Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-27 23:44:42 +0300
committerPaul B Mahol <onemda@gmail.com>2016-08-29 17:27:09 +0300
commita0a57072c93be397afe346d03b907397d6b88396 (patch)
tree1b3ba1437f6eaab36f9747bf88f3d9e425a69f40 /libavfilter/vf_datascope.c
parent5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b (diff)
avfilter: make use of ff_filter_get_nb_threads
Diffstat (limited to 'libavfilter/vf_datascope.c')
-rw-r--r--libavfilter/vf_datascope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_datascope.c b/libavfilter/vf_datascope.c
index 3c82a0e34e..76134c2780 100644
--- a/libavfilter/vf_datascope.c
+++ b/libavfilter/vf_datascope.c
@@ -328,7 +328,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
td.in = in; td.out = out, td.yoff = xmaxlen, td.xoff = ymaxlen;
- ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(ctx->graph->nb_threads, FFMAX(outlink->w / 20, 1)));
+ ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(ff_filter_get_nb_threads(ctx), FFMAX(outlink->w / 20, 1)));
av_frame_free(&in);
return ff_filter_frame(outlink, out);