diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-08-04 11:03:39 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-08-04 11:03:39 +0400 |
commit | 1e3c3efb785e44192d819a05e4e1d8585341ed74 (patch) | |
tree | 371a28de840367b22859179eb054a2b589d59e8b /src/filters/parser/MP4Splitter | |
parent | 1794613d7b08079e84bc70f2819ab06e9beb4a33 (diff) |
Fix : Improve MP4Splitter to detect 7.1 AAC.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3568 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter')
-rw-r--r-- | src/filters/parser/MP4Splitter/MP4Splitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filters/parser/MP4Splitter/MP4Splitter.cpp b/src/filters/parser/MP4Splitter/MP4Splitter.cpp index 9630ea509..2ff56a189 100644 --- a/src/filters/parser/MP4Splitter/MP4Splitter.cpp +++ b/src/filters/parser/MP4Splitter/MP4Splitter.cpp @@ -280,8 +280,9 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) case AP4_MPEG2_AAC_AUDIO_LC_OTI: // ???
case AP4_MPEG2_AAC_AUDIO_SSRP_OTI: // ???
mt.subtype = FOURCCMap(wfe->wFormatTag = WAVE_FORMAT_AAC);
- if(wfe->cbSize >= 2) {
+ if(wfe->cbSize >= 2 && wfe->nChannels < 8) {
wfe->nChannels = (((BYTE*)(wfe+1))[1]>>3) & 0xf;
+ wfe->nBlockAlign = (WORD)((wfe->nChannels * wfe->wBitsPerSample) / 8);
}
mts.Add(mt);
break;
|