diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-05-16 10:33:20 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-05-16 10:33:20 +0400 |
commit | e982dc2e67ac170208f8c94dba16513662a0c7d5 (patch) | |
tree | 9a70637b1d0b4dce508e6fd883190a27427277d8 /src/filters/parser/MpegSplitter | |
parent | 6265b9ffdb130a2457e75169d0c5e631a94a098d (diff) |
Fix : MPEGSplitter, another fix rev. 3105, broken Info for multiple video stream;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3112 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MpegSplitter')
-rw-r--r-- | src/filters/parser/MpegSplitter/MpegSplitterFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp b/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp index 51cd604eb..bf497d7d8 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp @@ -459,11 +459,11 @@ DWORD CMpegSplitterFile::AddStream(WORD pid, BYTE pesid, DWORD len) // and can also be split into multiple packets
if (!avch.Lookup(pid))
memset(&avch[pid], 0, sizeof(CMpegSplitterFile::avchdr));
- if(!m_streams[video].Find(s) && !m_streams[stereo].Find(s) && Read(avch[pid], len, &s.mt))
- {
- if (avch[pid].spspps[index_subsetsps].complete)
+
+ if((!m_streams[video].Find(s) || !m_streams[stereo].Find(s)) && Read(avch[pid], len, &s.mt)) {
+ if (!m_streams[stereo].Find(s) && avch[pid].spspps[index_subsetsps].complete)
type = stereo;
- else
+ else if(!m_streams[video].Find(s))
type = video;
}
}
|