]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/opusdec: Mark decoder as init-threadsafe
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 28 Dec 2020 17:00:28 +0000 (18:00 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 31 Dec 2020 22:35:21 +0000 (23:35 +0100)
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/opusdec.c

index 24e90a376185e5f71ec65f7a23a24b9bae88846c..f0d7ed62a1a613bf6e88277814267cf01ea7921e 100644 (file)
@@ -716,5 +716,5 @@ AVCodec ff_opus_decoder = {
     .decode          = opus_decode_packet,
     .flush           = opus_decode_flush,
     .capabilities    = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF,
-    .caps_internal   = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal   = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };