]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/sheervideo: Add av_cold to build_vlc()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 1 Nov 2020 00:14:36 +0000 (01:14 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Nov 2020 10:35:03 +0000 (11:35 +0100)
It is an init function even when called from decode_frame().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/sheervideo.c

index 976c21c4452fc3e147bf370e0d86be0922289717..3e60ef26a501773ba030529c11a54b0b4b2d4fa9 100644 (file)
@@ -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];