diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-23 04:20:07 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:48 +0100 |
commit | 4f5bd6177da43263a47239d96ec1776ccf46368e (patch) | |
tree | 77c14371ab148cd679f253d1393ca0139432edb2 /libavcodec/dsddec.c | |
parent | fd5d66af744462a97237fa0474e77924c71729ec (diff) | |
download | ffmpeg-4f5bd6177da43263a47239d96ec1776ccf46368e.tar.gz |
avcodec/dsd: Make initializing DSD tables thread-safe
This automatically makes the DSD formats as well as DST and WavPack
init-threadsafe.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/dsddec.c')
-rw-r--r-- | libavcodec/dsddec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dsddec.c b/libavcodec/dsddec.c index 39837a5ad9..375e49341f 100644 --- a/libavcodec/dsddec.c +++ b/libavcodec/dsddec.c @@ -125,6 +125,7 @@ AVCodec ff_##name_##_decoder = { \ .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, \ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, \ AV_SAMPLE_FMT_NONE }, \ + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ }; DSD_DECODER(DSD_LSBF, dsd_lsbf, "DSD (Direct Stream Digital), least significant bit first") |