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

James Almer jamrial at gmail.com
Fri Jun 30 01:46:31 EEST 2023


On 6/29/2023 7:28 PM, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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.


More information about the ffmpeg-devel mailing list