From 87951dcbe775b349a671b9ac2e6ac5c38aee0e79 Mon Sep 17 00:00:00 2001 From: Thilo Borgmann Date: Sun, 6 Jun 2021 15:15:00 +0200 Subject: lavu/cpu.c: Add av_force_cpu_count() to override auto-detection. --- libavutil/cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavutil/cpu.h') diff --git a/libavutil/cpu.h b/libavutil/cpu.h index b555422dae..c069076439 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -98,6 +98,12 @@ int av_parse_cpu_caps(unsigned *flags, const char *s); */ int av_cpu_count(void); +/** + * Overrides cpu count detection and forces the specified count. + * Count < 1 disables forcing of specific count. + */ +void av_force_cpu_count(int count); + /** * Get the maximum data alignment that may be required by FFmpeg. * -- cgit v1.2.3