1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/frame_thread_encoder: Mark init and free functions as av_cold

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-02 15:11:01 +02:00
parent 5f6fcb0395
commit 16fc8cef74

View File

@ -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,