diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-06-05 22:28:40 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-06-05 22:28:40 +0400 |
commit | 095263180c3c7b131990771dea3b19f80e89762e (patch) | |
tree | 24190f111ad46b97a06d2d97083d2eb072544b84 | |
parent | 1cc21b38ad1dc2df8335dfe2ee965175cf18ce66 (diff) |
Disable multi-threading for audio codecs.
This doesn't do anything yet, but ensures that future ffmpeg changes don't enable it.
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 94a910ec..1ebefe4e 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -1298,6 +1298,8 @@ HRESULT CLAVAudio::ffmpeg_init(AVCodecID codec, const void *format, const GUID f size_t extralen = 0; getExtraData((BYTE *)format, &format_type, formatlen, NULL, &extralen); + m_pAVCtx->thread_count = 1; + m_pAVCtx->thread_type = 0; m_pAVCtx->sample_rate = nSamples; m_pAVCtx->channels = nChannels; m_pAVCtx->bit_rate = nBytesPerSec << 3; |