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

Andreas Rheinhardt git at videolan.org
Fri Feb 18 22:21:54 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Feb 11 12:40:50 2022 +0100| [1ece38668f944d4d7f33779a21c05a0d7e358608] | committer: Andreas Rheinhardt

avcodec/svq3: Mark decoder as init-threadsafe

The only interesting thing done in SVQ3's init function
is using zlib, but this is fine: https://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=1ece38668f944d4d7f33779a21c05a0d7e358608
---

 libavcodec/svq3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index be95e222aa..da61617f4e 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -1601,5 +1601,5 @@ const AVCodec ff_svq3_decoder = {
                       AV_CODEC_CAP_DELAY,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUVJ420P,
                                                      AV_PIX_FMT_NONE},
-    .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