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_chromakey.c | |
parent | 5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b (diff) | |
download | ffmpeg-streaming-a0a57072c93be397afe346d03b907397d6b88396.zip ffmpeg-streaming-a0a57072c93be397afe346d03b907397d6b88396.tar.gz |
avfilter: make use of ff_filter_get_nb_threads
Diffstat (limited to 'libavfilter/vf_chromakey.c')
-rw-r--r-- | libavfilter/vf_chromakey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_chromakey.c b/libavfilter/vf_chromakey.c index 3309748..8841478 100644 --- a/libavfilter/vf_chromakey.c +++ b/libavfilter/vf_chromakey.c @@ -108,7 +108,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) AVFilterContext *avctx = link->dst; int res; - if (res = avctx->internal->execute(avctx, do_chromakey_slice, frame, NULL, FFMIN(frame->height, avctx->graph->nb_threads))) + if (res = avctx->internal->execute(avctx, do_chromakey_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(avctx)))) return res; return ff_filter_frame(avctx->outputs[0], frame); |