[FFmpeg-devel] [PATCH] avcodec/pnmdec: Mark PHM decoder as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Jul 18 17:21:44 EEST 2022


Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/pnmdec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
> index bb2ce53496..f012ed288b 100644
> --- a/libavcodec/pnmdec.c
> +++ b/libavcodec/pnmdec.c
> @@ -513,5 +513,6 @@ const FFCodec ff_phm_decoder = {
>      .priv_data_size = sizeof(PNMContext),
>      .init           = phm_dec_init,
>      FF_CODEC_DECODE_CB(pnm_decode_frame),
> +    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
>  };
>  #endif

Will apply this patchset (with the obvious changes warranted by the new
hdr encoder) later tonight.

- Andreas


More information about the ffmpeg-devel mailing list