diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2012-02-28 10:35:52 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2012-02-28 10:35:52 +0400 |
commit | b705bc31be3cf0ff4356e94d5612e96ef07db5a2 (patch) | |
tree | a6e39e0a2929e6b958e1406dcf557208c9bd08f6 /src/DSUtil/AudioParser.cpp | |
parent | 92eb13f235706679ee99c10aa563c288ce059d78 (diff) |
Add : MPEGSplitter - Support TrueHD in EVO(also modify MPADecFilter).
Change : MPEGSplitter - correct PES Header parser, use PES extension data to read ext id for VC1 stream - fix issue when multiple video stream in file;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4106 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/AudioParser.cpp')
-rw-r--r-- | src/DSUtil/AudioParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DSUtil/AudioParser.cpp b/src/DSUtil/AudioParser.cpp index 424732659..a16d0e40a 100644 --- a/src/DSUtil/AudioParser.cpp +++ b/src/DSUtil/AudioParser.cpp @@ -170,8 +170,9 @@ int ParseTrueHDHeader(const BYTE *buf, int *samplerate, int *channels, int *fram };
DWORD sync = *(DWORD*)(buf+4);
- if (sync != TRUEHD_SYNC_WORD)
+ if (sync != TRUEHD_SYNC_WORD) {
return 0;
+ }
int frame_size = (((buf[0] << 8) | buf[1]) & 0xfff) * 2;
|