summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2025-09-05 01:09:49 +0200
committerJames Almer <[email protected]>2025-09-13 20:37:03 +0000
commit1df63acdc486d08fccbd0f3d19eb0398486c8e00 (patch)
tree27761d78ce04dd01afc2cf90c1d1eb480de0c3e1 /libavcodec/h264_parser.c
parentbc545bae3be34e71980f93259dfca1b8bb28bd92 (diff)
avcodec: Add av_cold to flush,init,close functions missing it
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 006f4059e8..722cbcb42f 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -29,6 +29,7 @@
#include <stdint.h>
+#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
@@ -660,7 +661,7 @@ static int h264_parse(AVCodecParserContext *s,
return next;
}
-static void h264_close(AVCodecParserContext *s)
+static av_cold void h264_close(AVCodecParserContext *s)
{
H264ParseContext *p = s->priv_data;
ParseContext *pc = &p->pc;