aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-23 03:10:36 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-31 11:46:20 +0100
commit902e16d18356025506e6a084dcfb3c0eacf634da (patch)
tree92f6f024c97c93abdc9c7e5a710934fb8b7752bf /libavcodec/mdec.c
parent6e8fcd9c5624c1a89e49803de9e10562ace61b6a (diff)
downloadffmpeg-902e16d18356025506e6a084dcfb3c0eacf634da.tar.gz
avcodec/mpeg12: Make initializing VLCs thread-safe
This automatically makes the eamad, eatqi, ipu and mdec decoders init-threadsafe; in addition to the actual mpeg[12]video decoders, of course. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index b16cbb6a79..d0bb1162b6 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -258,4 +258,5 @@ AVCodec ff_mdec_decoder = {
.close = decode_end,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};