X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_lenscorrection.c;h=239fe195bd0e476e167fc6d7feb73fd8b5732f61;hb=97f50d1c624d7dc8ed76554a119f8f3107126bfc;hp=9db483dd36e6c15c1ce29c3894664e6891495149;hpb=0fd76d77d60a9df9ceaa643ec7444106e111fa0e;p=ffmpeg diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c index 9db483dd36e..239fe195bd0 100644 --- a/libavfilter/vf_lenscorrection.c +++ b/libavfilter/vf_lenscorrection.c @@ -193,7 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } td.correction = rect->correction[plane]; - 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))); } av_frame_free(&in);