diff mbox series

[FFmpeg-devel] avcodec/vvc_parser: Mark close function as av_cold

Message ID GV1P250MB0737CCA5FC69A387D15C43348F25A@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit b7158377c9449df831f89fe6fd39309efecbf188
Headers show
Series [FFmpeg-devel] avcodec/vvc_parser: Mark close function as av_cold | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt June 29, 2023, 10:28 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/vvc_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Almer June 29, 2023, 10:46 p.m. UTC | #1
On 6/29/2023 7:28 PM, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>   libavcodec/vvc_parser.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c
> index 69696eef57..0a8ef9f177 100644
> --- a/libavcodec/vvc_parser.c
> +++ b/libavcodec/vvc_parser.c
> @@ -496,7 +496,7 @@ static av_cold int vvc_parser_init(AVCodecParserContext *s)
>       return ret;
>   }
>   
> -static void vvc_parser_close(AVCodecParserContext *s)
> +static av_cold void vvc_parser_close(AVCodecParserContext *s)
>   {
>       VVCParserContext *ctx = s->priv_data;

Other parser don't seem to do this (only for init), but LGTM either way.
diff mbox series

Patch

diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c
index 69696eef57..0a8ef9f177 100644
--- a/libavcodec/vvc_parser.c
+++ b/libavcodec/vvc_parser.c
@@ -496,7 +496,7 @@  static av_cold int vvc_parser_init(AVCodecParserContext *s)
     return ret;
 }
 
-static void vvc_parser_close(AVCodecParserContext *s)
+static av_cold void vvc_parser_close(AVCodecParserContext *s)
 {
     VVCParserContext *ctx = s->priv_data;