]> git.sesse.net Git - ffmpeg/commit
lavfi/lensfun: Use ff_filter_get_nb_threads() get number of threads
authorJun Zhao <barryjzhao@tencent.com>
Wed, 22 May 2019 01:41:56 +0000 (09:41 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Wed, 22 May 2019 09:34:18 +0000 (17:34 +0800)
commit98663a0bb8cb8dc0fbc7c8964ebfab9efc5c046d
tree9843f058c76e274fe22a8e6773d0ac1a9bfb2012
parentecc096513c32119341a1240b67778f3e24b4293e
lavfi/lensfun: Use ff_filter_get_nb_threads() get number of threads

ff_filter_get_nb_threads() respect AVFilterContext.nb_threads and
graph->nb_threads both, in most case, we perfer this API than using
ctx->graph->nb_threads directly.

Reviewed-by: Steven Liu <lq@onvideo.cn>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/vf_lensfun.c