diff options
author | v0lt <v0lt@users.sourceforge.net> | 2012-07-15 15:07:59 +0400 |
---|---|---|
committer | v0lt <v0lt@users.sourceforge.net> | 2012-07-15 15:07:59 +0400 |
commit | 64d97de9d703cc870a7362e1d610258982bcedea (patch) | |
tree | b3e7cca45bf141ef76259d457d167aaff93434a0 /src/DSUtil/AudioParser.cpp | |
parent | 38cedc155aa450ef433af33ca78dec527997a97e (diff) |
DTSAC3Source: removed libdca parser. used ParseDTSHeader from AudioParser
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5481 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/AudioParser.cpp')
-rw-r--r-- | src/DSUtil/AudioParser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DSUtil/AudioParser.cpp b/src/DSUtil/AudioParser.cpp index f19f11ad4..c6827d360 100644 --- a/src/DSUtil/AudioParser.cpp +++ b/src/DSUtil/AudioParser.cpp @@ -325,8 +325,8 @@ void dts14le_to_dts16be(const BYTE* source, BYTE* destination, int size) { int ParseDTSHeader(const BYTE* buf, int* samplerate, int* channels, int* framelength, int* tr_bitrate)
{
- static const int dts_channels[16] = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8}; - static const int core_sample_rates[] = {0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0, 12000, 24000, 48000, 96000, 192000}; + static const int dts_channels[16] = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8};
+ static const int core_sample_rates[] = {0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0, 12000, 24000, 48000, 96000, 192000};
static const int transmission_bitrates[32] = {
32000, 56000, 64000, 96000,
112000, 128000, 192000, 224000,
@@ -339,9 +339,9 @@ int ParseDTSHeader(const BYTE* buf, int* samplerate, int* channels, int* framele // [15] 768000 is actually 754500 for DVD
// [24] 1536000 is actually 1509000 for ???
// [24] 1536000 is actually 1509750 for DVD
- // [22] 1411200 is actually 1234800 for 14-bit DTS-CD audio - }; - + // [22] 1411200 is actually 1234800 for 14-bit DTS-CD audio
+ };
+
unsigned int tmp;
// minimum buffer size is 16
DWORD sync = *(DWORD*)buf;
|