[FFmpeg-cvslog] avcodec/tscc: Mark decoder as init-threadsafe
Andreas Rheinhardt
git at videolan.org
Tue May 11 01:21:04 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed May 5 20:50:16 2021 +0200| [6fc4f28a11f41fd6b26a1c027c76670ab0be6db3] | committer: Andreas Rheinhardt
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 at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6fc4f28a11f41fd6b26a1c027c76670ab0be6db3
---
libavcodec/tscc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
};
More information about the ffmpeg-cvslog
mailing list