summaryrefslogtreecommitdiff
path: root/libavcodec/hcadec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-08 15:51:29 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-09 06:52:41 +0100
commit42140010a2abcfe5330dcde546a827be60ab0649 (patch)
tree5998aba8e447551ec2a53791dd12597757a41dce /libavcodec/hcadec.c
parent2c7f25d4608ba7d681b8f156dec75a5c60688be8 (diff)
downloadffmpeg-42140010a2abcfe5330dcde546a827be60ab0649.tar.gz
avcodec/hcadec: Mark decoder as init-threadsafe
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/hcadec.c')
-rw-r--r--libavcodec/hcadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c
index ef3af08c4c..f5e23efc5b 100644
--- a/libavcodec/hcadec.c
+++ b/libavcodec/hcadec.c
@@ -455,7 +455,7 @@ const AVCodec ff_hca_decoder = {
.decode = decode_frame,
.close = decode_close,
.capabilities = AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE },
};