diff options
author | v0lt <v0lt@users.sourceforge.net> | 2012-02-23 09:50:03 +0400 |
---|---|---|
committer | v0lt <v0lt@users.sourceforge.net> | 2012-02-23 09:50:03 +0400 |
commit | 4f42c1fe2d30a471fe4ff51117f4a7f678e3253a (patch) | |
tree | fb599f10164d4d34eca8ee66ac2b094ac91d22e4 /src/filters/parser/MP4Splitter/AP4 | |
parent | e476625c4b3eb3e4eb059f5ed0e64613ca5dbf11 (diff) |
MP4Splitter: fixed stereo A-Law and u-Law playback. added support for the system decoder.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4095 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter/AP4')
-rw-r--r-- | src/filters/parser/MP4Splitter/AP4/Core/Ap4SampleEntry.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/filters/parser/MP4Splitter/AP4/Core/Ap4SampleEntry.cpp b/src/filters/parser/MP4Splitter/AP4/Core/Ap4SampleEntry.cpp index f89f587f4..676d4ce88 100644 --- a/src/filters/parser/MP4Splitter/AP4/Core/Ap4SampleEntry.cpp +++ b/src/filters/parser/MP4Splitter/AP4/Core/Ap4SampleEntry.cpp @@ -360,13 +360,21 @@ AP4_AudioSampleEntry::AP4_AudioSampleEntry(AP4_Atom::Type format, m_QtV1SamplesPerPacket = 1;
m_QtV1BytesPerPacket = m_SampleSize / 8;
m_QtV1BytesPerFrame = m_ChannelCount * m_QtV1BytesPerPacket;
- m_QtV1BytesPerSample = m_SampleSize/8;
+ m_QtV1BytesPerSample = m_SampleSize / 8;
+ break;
+ case AP4_ATOM_TYPE_ALAW:
+ case AP4_ATOM_TYPE_ULAW:
+ m_SampleSize = 8;
+ m_QtV1SamplesPerPacket = 1;
+ m_QtV1BytesPerPacket = 1;
+ m_QtV1BytesPerFrame = m_ChannelCount * m_QtV1BytesPerPacket;
+ m_QtV1BytesPerSample = 1;
break;
case AP4_ATOM_TYPE_IMA4:
m_QtV1SamplesPerPacket = 64;
m_QtV1BytesPerPacket = 34;
m_QtV1BytesPerFrame = m_ChannelCount * m_QtV1BytesPerPacket;
- m_QtV1BytesPerSample = m_SampleSize/8;
+ m_QtV1BytesPerSample = m_SampleSize / 8;
break;
}
}
|