diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-11 20:40:59 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-18 20:29:45 +0100 |
commit | 569a0d0012a7d0fe0353c3528a8e6d60ebc10311 (patch) | |
tree | 0a0ab7e4e2c6573f774845756fa8f465549ae7a2 /libavcodec/mss2.c | |
parent | 23b17f96f7cec07ec098838e3cc507507412ce7a (diff) | |
download | ffmpeg-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.c | 1 |
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, }; |