[FFmpeg-cvslog] avcodec/sheervideo: Add av_cold to build_vlc()

Andreas Rheinhardt git at videolan.org
Tue Nov 24 12:48:59 EET 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Nov  1 01:14:36 2020 +0100| [e74621b0a8c4d8f9aecdbb72ca264bdaca17ab52] | committer: Andreas Rheinhardt

avcodec/sheervideo: Add av_cold to build_vlc()

It is an init function even when called from decode_frame().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

 libavcodec/sheervideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index 976c21c445..3e60ef26a5 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -1781,7 +1781,7 @@ static void decode_rgb(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
     }
 }
 
-static int build_vlc(VLC *vlc, const SheerTable *table)
+static av_cold int build_vlc(VLC *vlc, const SheerTable *table)
 {
     const uint8_t *cur = table->lens;
     uint16_t codes[1024];



More information about the ffmpeg-cvslog mailing list