svt_av1: fix patch

This commit is contained in:
Jerome Duval
2021-01-14 20:54:27 +01:00
parent 69683406f2
commit bf33755034

View File

@@ -1,4 +1,4 @@
From 5b7ef6aeba12650f983e0f609939aeeb3cb07877 Mon Sep 17 00:00:00 2001 From 14fab4b1f5f53967c4f5cee63520936f98bec022 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com> From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 14 Jan 2021 18:29:12 +0100 Date: Thu, 14 Jan 2021 18:29:12 +0100
Subject: Haiku patch Subject: Haiku patch
@@ -18,7 +18,7 @@ index e5f3351..64f1d76 100644
endif() endif()
endif() endif()
diff --git a/Source/Lib/Common/Codec/EbThreads.c b/Source/Lib/Common/Codec/EbThreads.c diff --git a/Source/Lib/Common/Codec/EbThreads.c b/Source/Lib/Common/Codec/EbThreads.c
index 25619f3..658f15c 100644 index 25619f3..f9c96a5 100644
--- a/Source/Lib/Common/Codec/EbThreads.c --- a/Source/Lib/Common/Codec/EbThreads.c
+++ b/Source/Lib/Common/Codec/EbThreads.c +++ b/Source/Lib/Common/Codec/EbThreads.c
@@ -84,11 +84,15 @@ EbHandle svt_create_thread(void *thread_function(void *), void *thread_context) @@ -84,11 +84,15 @@ EbHandle svt_create_thread(void *thread_function(void *), void *thread_context)
@@ -32,7 +32,7 @@ index 25619f3..658f15c 100644
struct sched_param param = {.sched_priority = 99}; struct sched_param param = {.sched_priority = 99};
pthread_attr_setschedparam(&attr, &param); pthread_attr_setschedparam(&attr, &param);
+#else +#else
+ pthread_attr_setstacksize(&attr, 256 * B_PAGE_SIZE); + pthread_attr_setstacksize(&attr, 256 * PAGESIZE);
+#endif +#endif
ret = pthread_create(th, &attr, thread_function, thread_context); ret = pthread_create(th, &attr, thread_function, thread_context);