[FFmpeg-cvslog] avutil/slicethread: Mark avpriv_slicethread_{create,free} as av_cold
Andreas Rheinhardt
git at videolan.org
Wed Mar 26 06:09:12 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Mar 15 05:34:29 2025 +0100| [e8a8a13128f54da16e2be088331562edf2bfc6d2] | committer: Andreas Rheinhardt
avutil/slicethread: Mark avpriv_slicethread_{create,free} as av_cold
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8a8a13128f54da16e2be088331562edf2bfc6d2
---
libavutil/slicethread.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/slicethread.c b/libavutil/slicethread.c
index 6593d58abc..7650fc66ad 100644
--- a/libavutil/slicethread.c
+++ b/libavutil/slicethread.c
@@ -95,6 +95,7 @@ static void *attribute_align_arg thread_worker(void *v)
}
}
+av_cold
int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
void (*main_func)(void *priv),
@@ -222,7 +223,7 @@ void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_mai
}
}
-void avpriv_slicethread_free(AVSliceThread **pctx)
+av_cold void avpriv_slicethread_free(AVSliceThread **pctx)
{
AVSliceThread *ctx = *pctx;
int nb_workers, i;
More information about the ffmpeg-cvslog
mailing list