[FFmpeg-cvslog] avcodec/exr: Mark decoder as init-threadsafe

Andreas Rheinhardt git at videolan.org
Sun Feb 13 14:07:22 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Feb 11 20:49:17 2022 +0100| [2233ef1db9059758bcf0ac3ea5630a72d7e838c1] | committer: Andreas Rheinhardt

avcodec/exr: Mark decoder as init-threadsafe

This decoder does not initialize any static data in its init function.

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2233ef1db9059758bcf0ac3ea5630a72d7e838c1
---

 libavcodec/exr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 8b04fab951..fc32ef1dde 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -2351,5 +2351,6 @@ const AVCodec ff_exr_decoder = {
     .decode           = decode_frame,
     .capabilities     = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS |
                         AV_CODEC_CAP_SLICE_THREADS,
+    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE,
     .priv_class       = &exr_class,
 };



More information about the ffmpeg-cvslog mailing list