aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 20:50:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-10 22:12:01 +0200
commit6fc4f28a11f41fd6b26a1c027c76670ab0be6db3 (patch)
tree34e602eb468c05da098f0ea5cbc1080d4bd4145e
parent54cb70594da4b9a35885053fd8738040f447003d (diff)
downloadffmpeg-6fc4f28a11f41fd6b26a1c027c76670ab0be6db3.tar.gz
avcodec/tscc: Mark decoder as init-threadsafe
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>
-rw-r--r--libavcodec/tscc.c2
1 files changed, 1 insertions, 1 deletions
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,
};