diff mbox series

[FFmpeg-devel,11/13] avcodec/frame_thread_encoder: Mark init and free functions as av_cold

Message ID AM7PR03MB6660932069DF9DD621C364AE8FCE9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 16fc8cef746fa9d600b96636c0d42e47c5594d03
Headers show
Series [FFmpeg-devel,01/13] avcodec/vp9: Do not destroy uninitialized mutexes/conditions
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Andreas Rheinhardt Sept. 2, 2021, 3:41 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/frame_thread_encoder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Sept. 2, 2021, 5:51 p.m. UTC | #1
LGTM
diff mbox series

Patch

diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index e9a5a146ca..d4f86f7418 100644
--- a/libavcodec/frame_thread_encoder.c
+++ b/libavcodec/frame_thread_encoder.c
@@ -130,7 +130,7 @@  end:
     return NULL;
 }
 
-int ff_frame_thread_encoder_init(AVCodecContext *avctx)
+av_cold int ff_frame_thread_encoder_init(AVCodecContext *avctx)
 {
     int i=0;
     ThreadContext *c;
@@ -253,7 +253,8 @@  fail:
     return ret;
 }
 
-void ff_frame_thread_encoder_free(AVCodecContext *avctx){
+av_cold void ff_frame_thread_encoder_free(AVCodecContext *avctx)
+{
     ThreadContext *c= avctx->internal->frame_thread_encoder;
 
     /* In case initializing the mutexes/condition variables failed,