Commit bc803f00 authored by Janne Grunau's avatar Janne Grunau Committed by Ronald S. Bultje

fuzzer: add a multithreaded fuzzer using 2 frame and tile threads

parent f8e918a9
......@@ -53,6 +53,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
dav1d_default_settings(&settings);
#ifdef DAV1D_MT_FUZZING
settings.n_frame_threads = settings.n_tile_threads = 2;
#else
settings.n_frame_threads = settings.n_tile_threads = 1;
#endif
err = dav1d_open(&ctx, &settings);
if (err < 0) goto end;
......
......@@ -103,3 +103,14 @@ dav1d_fuzzer = executable('dav1d_fuzzer',
build_by_default: true,
dependencies : [thread_dependency],
)
dav1d_fuzzer_mt = executable('dav1d_fuzzer_mt',
dav1d_fuzzer_sources,
include_directories: dav1d_inc_dirs,
c_args: [stackalign_flag, stackrealign_flag] + fuzzer_flags +
['-DDAV1D_MT_FUZZING'],
link_args: fuzzer_flags,
link_with : libdav1d,
build_by_default: true,
dependencies : [thread_dependency],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment