diff mbox series

[FFmpeg-devel,15/23] avcodec/tscc: Mark decoder as init-threadsafe

Message ID VI1PR0301MB2159355993BEAA98698EE0098F589@VI1PR0301MB2159.eurprd03.prod.outlook.com
State Accepted
Commit 6fc4f28a11f41fd6b26a1c027c76670ab0be6db3
Headers show
Series [FFmpeg-devel,01/23] avcodec/ljpegenc: Mark encoder as init-threadsafe | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt May 6, 2021, 5:11 a.m. UTC
Initializing zlib in the way we do here is threadsafe, see
https://www.zlib.net/zlib_faq.html#faq21

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/tscc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index e1a075faa7..841f0c0d14 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -191,5 +191,5 @@  const AVCodec ff_tscc_decoder = {
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };