summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colorkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_colorkey.c')
-rw-r--r--libavfilter/vf_colorkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_colorkey.c b/libavfilter/vf_colorkey.c
index 2f670d97e7..3d65e59d42 100644
--- a/libavfilter/vf_colorkey.c
+++ b/libavfilter/vf_colorkey.c
@@ -85,7 +85,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
if (res = av_frame_make_writable(frame))
return res;
- if (res = avctx->internal->execute(avctx, do_colorkey_slice, frame, NULL, FFMIN(frame->height, avctx->graph->nb_threads)))
+ if (res = avctx->internal->execute(avctx, do_colorkey_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(avctx))))
return res;
return ff_filter_frame(avctx->outputs[0], frame);