ref: 68e844aa1bb005a8ae21ebb0513cc03df1330f85
parent: a713643eadcf50c9f7fd2ea22a598127c959a723
author: Henrik Gramner <[email protected]>
date: Wed May 8 23:51:32 EDT 2019
Increase thread stack size Stack usage can increase significantly when running under certain sanitizers which may exceed the previously used value.
--- a/src/lib.c
+++ b/src/lib.c
@@ -92,7 +92,7 @@
pthread_attr_t thread_attr;
if (pthread_attr_init(&thread_attr)) return DAV1D_ERR(ENOMEM);
- pthread_attr_setstacksize(&thread_attr, 512 * 1024);
+ pthread_attr_setstacksize(&thread_attr, 1024 * 1024);
Dav1dContext *const c = *c_out = dav1d_alloc_aligned(sizeof(*c), 32);
if (!c) goto error;