Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/cpu.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-31 15:42:56 +0300
committerJames Almer <jamrial@gmail.com>2022-03-31 15:42:56 +0300
commit6777dd0a61ab78cc9fab92af53558ea44c135056 (patch)
tree0c9c5ec1b803fd7ba1d5598e81965e5d0d5151af /src/cpu.c
parentac07a6653a5a0c0fee65dc4c229b8188bb726acb (diff)
lib: add a function to query the decoder frame delay
Diffstat (limited to 'src/cpu.c')
-rw-r--r--src/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu.c b/src/cpu.c
index 2e5e8d9..3d129c8 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -99,6 +99,7 @@ COLD int dav1d_num_logical_processors(Dav1dContext *const c) {
#elif defined(_SC_NPROCESSORS_ONLN)
return (int)sysconf(_SC_NPROCESSORS_ONLN);
#endif
- dav1d_log(c, "Unable to detect thread count, defaulting to single-threaded mode\n");
+ if (c)
+ dav1d_log(c, "Unable to detect thread count, defaulting to single-threaded mode\n");
return 1;
}