diff options
author | Andreas Rheinhardt <[email protected]> | 2025-09-05 01:09:49 +0200 |
---|---|---|
committer | James Almer <[email protected]> | 2025-09-13 20:37:03 +0000 |
commit | 1df63acdc486d08fccbd0f3d19eb0398486c8e00 (patch) | |
tree | 27761d78ce04dd01afc2cf90c1d1eb480de0c3e1 /libavcodec/parser.c | |
parent | bc545bae3be34e71980f93259dfca1b8bb28bd92 (diff) |
avcodec: Add av_cold to flush,init,close functions missing it
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 426cc314fb..af966766ee 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -24,12 +24,13 @@ #include <stdint.h> #include <string.h> +#include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/mem.h" #include "parser.h" -AVCodecParserContext *av_parser_init(int codec_id) +av_cold AVCodecParserContext *av_parser_init(int codec_id) { AVCodecParserContext *s = NULL; const AVCodecParser *parser; @@ -190,7 +191,7 @@ int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, return index; } -void av_parser_close(AVCodecParserContext *s) +av_cold void av_parser_close(AVCodecParserContext *s) { if (s) { if (s->parser->parser_close) @@ -287,7 +288,7 @@ int ff_combine_frame(ParseContext *pc, int next, return 0; } -void ff_parse_close(AVCodecParserContext *s) +av_cold void ff_parse_close(AVCodecParserContext *s) { ParseContext *pc = s->priv_data; |