summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colorspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_colorspace.c')
-rw-r--r--libavfilter/vf_colorspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c
index 37e77d1295..e4022f89b8 100644
--- a/libavfilter/vf_colorspace.c
+++ b/libavfilter/vf_colorspace.c
@@ -947,7 +947,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
return res;
} else {
ctx->internal->execute(ctx, convert, &td, NULL,
- FFMIN((in->height + 1) >> 1, ctx->graph->nb_threads));
+ FFMIN((in->height + 1) >> 1, ff_filter_get_nb_threads(ctx)));
}
av_frame_free(&in);