summaryrefslogtreecommitdiff
path: root/libavcodec/flvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-11 19:27:55 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-18 20:17:18 +0100
commitf32685594737339bd8600302cf2fc726c5b8b7b6 (patch)
tree3822e6c14fe443bc3dfb21979e86020072617632 /libavcodec/flvdec.c
parent6b3957354759386ce9c93f1b3154691d99cb3437 (diff)
downloadffmpeg-f32685594737339bd8600302cf2fc726c5b8b7b6.tar.gz
avcodec/ituh263dec: Make initializing VLCs thread-safe
This automatically makes the FLV, H.263, H.263+, Intel H.263, MPEG-4, RealVideo 1.0 and RealVideo 2.0 decoders init-threadsafe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/flvdec.c')
-rw-r--r--libavcodec/flvdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c
index dacc64c81c..b083d05037 100644
--- a/libavcodec/flvdec.c
+++ b/libavcodec/flvdec.c
@@ -123,7 +123,8 @@ const AVCodec ff_flv_decoder = {
.close = ff_h263_decode_end,
.decode = ff_h263_decode_frame,
.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,
.max_lowres = 3,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
AV_PIX_FMT_NONE },