summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacdec_fixed.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-10-14 14:25:51 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-10-15 13:48:55 -0400
commit1a29804558c13ef512d9ef73a9b0d782af4fa5f2 (patch)
treebbc35b549488b63341790dd82b54fd1e7fc3f31f /libavcodec/aacdec_fixed.c
parent0861862b897ade9e62064f532f3b0a957ee7a0d8 (diff)
downloadffmpeg-streaming-1a29804558c13ef512d9ef73a9b0d782af4fa5f2.zip
ffmpeg-streaming-1a29804558c13ef512d9ef73a9b0d782af4fa5f2.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
index 875ef58..923fbe0 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,
};
OpenPOWER on IntegriCloud