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

Andreas Rheinhardt git at videolan.org
Fri Jan 1 01:07:42 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Mon Dec 28 20:01:47 2020 +0100| [bd46e3ee71c20685b54778d0f5d845e1d9449a1a] | committer: Andreas Rheinhardt

avcodec/qdmc: Mark decoder as init-threadsafe

It already uses ff_thread_once() to initialize its static data.

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

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

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

diff --git a/libavcodec/qdmc.c b/libavcodec/qdmc.c
index 94681a0b6b..a8c930f0e7 100644
--- a/libavcodec/qdmc.c
+++ b/libavcodec/qdmc.c
@@ -736,4 +736,5 @@ AVCodec ff_qdmc_decoder = {
     .decode           = qdmc_decode_frame,
     .flush            = qdmc_flush,
     .capabilities     = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
+    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE,
 };



More information about the ffmpeg-cvslog mailing list