diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2015-10-14 21:25:51 +0300 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2015-10-15 20:48:55 +0300 |
commit | 1a29804558c13ef512d9ef73a9b0d782af4fa5f2 (patch) | |
tree | bbc35b549488b63341790dd82b54fd1e7fc3f31f /libavcodec/aacdec_fixed.c | |
parent | 0861862b897ade9e62064f532f3b0a957ee7a0d8 (diff) |
aac: Make codec init run under ff_thread_once
This makes AAC init threadsafe.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/aacdec_fixed.c')
-rw-r--r-- | libavcodec/aacdec_fixed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c index 875ef582f4..923fbe0383 100644 --- a/libavcodec/aacdec_fixed.c +++ b/libavcodec/aacdec_fixed.c @@ -438,6 +438,7 @@ AVCodec ff_aac_fixed_decoder = { AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_NONE }, .capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, .channel_layouts = aac_channel_layout, .flush = flush, }; |