summaryrefslogtreecommitdiffstats
path: root/libavcodec/executor.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2025-09-05 01:09:49 +0200
committerJames Almer <[email protected]>2025-09-13 20:37:03 +0000
commit1df63acdc486d08fccbd0f3d19eb0398486c8e00 (patch)
tree27761d78ce04dd01afc2cf90c1d1eb480de0c3e1 /libavcodec/executor.c
parentbc545bae3be34e71980f93259dfca1b8bb28bd92 (diff)
avcodec: Add av_cold to flush,init,close functions missing it
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/executor.c')
-rw-r--r--libavcodec/executor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/executor.c b/libavcodec/executor.c
index 7a86e894f8..3bf60bedb3 100644
--- a/libavcodec/executor.c
+++ b/libavcodec/executor.c
@@ -129,7 +129,7 @@ static void *executor_worker_task(void *data)
}
#endif
-static void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
+static av_cold void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
{
if (e->thread_count) {
//signal die
@@ -153,7 +153,7 @@ static void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
av_free(e);
}
-FFExecutor* ff_executor_alloc(const FFTaskCallbacks *cb, int thread_count)
+av_cold FFExecutor* ff_executor_alloc(const FFTaskCallbacks *cb, int thread_count)
{
FFExecutor *e;
int has_lock = 0, has_cond = 0;
@@ -199,7 +199,7 @@ free_executor:
return NULL;
}
-void ff_executor_free(FFExecutor **executor)
+av_cold void ff_executor_free(FFExecutor **executor)
{
int thread_count;