aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mss2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-11 20:40:59 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-18 20:29:45 +0100
commit569a0d0012a7d0fe0353c3528a8e6d60ebc10311 (patch)
tree0a0ab7e4e2c6573f774845756fa8f465549ae7a2 /libavcodec/mss2.c
parent23b17f96f7cec07ec098838e3cc507507412ce7a (diff)
downloadffmpeg-569a0d0012a7d0fe0353c3528a8e6d60ebc10311.tar.gz
avcodec/msmpeg4dec: Make initializing VLCs thread-safe
This automatically makes the remaining mpegvideo-decoders (namely msmpeg4v[1-3], mss2, VC-1, VC-1 Image, WMV-[1-3] and WMV-3 Image) init-threadsafe. These were the last native codecs that were not init-threadsafe; only wrappers for external libraries and for hardware accelerations are now not init-threadsafe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mss2.c')
-rw-r--r--libavcodec/mss2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c
index 65decf0a3c..630448ddb5 100644
--- a/libavcodec/mss2.c
+++ b/libavcodec/mss2.c
@@ -856,4 +856,5 @@ const AVCodec ff_mss2_decoder = {
.close = mss2_decode_end,
.decode = mss2_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};