[FFmpeg-cvslog] avcodec/frame_thread_encoder: Mark init and free functions as av_cold

Andreas Rheinhardt git at videolan.org
Sat Sep 4 10:26:25 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep  2 15:11:01 2021 +0200| [16fc8cef746fa9d600b96636c0d42e47c5594d03] | committer: Andreas Rheinhardt

avcodec/frame_thread_encoder: Mark init and free functions as av_cold

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16fc8cef746fa9d600b96636c0d42e47c5594d03
---

 libavcodec/frame_thread_encoder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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,



More information about the ffmpeg-cvslog mailing list