[FFmpeg-devel] [PATCH v2 080/162] avcodec/sheervideo: Add av_cold to build_vlc()
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Fri Nov 20 09:19:53 EET 2020
It is an init function even when called from decode_frame().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
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];
--
2.25.1
More information about the ffmpeg-devel
mailing list