diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-07-10 23:37:49 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-07-10 23:37:49 +0400 |
commit | e88cb68608e5c97d58d0598abf3397215639db44 (patch) | |
tree | d08773e45967651ff5e7f1c01f47aafca332dd93 /decoder/LAVAudio | |
parent | 2f8648e14ab32f95f726c0ccbed95d86ff92319d (diff) |
Properly show 16-bit wrapped in a S32 as 16-bit
Diffstat (limited to 'decoder/LAVAudio')
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 97abc137..ac38b46a 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -1920,7 +1920,7 @@ HRESULT CLAVAudio::Decode(const BYTE * const buffer, int buffsize, int &consumed hr = S_OK; - m_DecodeFormat = out.sfFormat == SampleFormat_32 && out.wBitsPerSample > 0 && out.wBitsPerSample <= 24 ? (out.wBitsPerSample < 16 ? SampleFormat_16 : SampleFormat_24) : out.sfFormat; + m_DecodeFormat = out.sfFormat == SampleFormat_32 && out.wBitsPerSample > 0 && out.wBitsPerSample <= 24 ? (out.wBitsPerSample <= 16 ? SampleFormat_16 : SampleFormat_24) : out.sfFormat; m_DecodeLayout = out.dwChannelMask; if (SUCCEEDED(PostProcess(&out))) { |