diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-05-17 06:43:46 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-05-17 06:43:46 +0400 |
commit | 90851e19348aa0b218b57b9a8a5b3e9060b4275c (patch) | |
tree | b17b9d75aa1ca7b544824b8e88f5c4a3c8f9de4a /src/filters/parser/MpegSplitter | |
parent | 20535adfa1d795a86b6900e7608633d37600bdde (diff) |
Fix : MPEGSplitter, crash on .vob files;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3114 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MpegSplitter')
-rw-r--r-- | src/filters/parser/MpegSplitter/MpegSplitterFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp b/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp index bf497d7d8..00308324c 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitterFile.cpp @@ -460,10 +460,10 @@ DWORD CMpegSplitterFile::AddStream(WORD pid, BYTE pesid, DWORD len) 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 (!m_streams[stereo].Find(s) && avch[pid].spspps[index_subsetsps].complete)
+ if(!m_streams[video].Find(s) && !m_streams[stereo].Find(s) && Read(avch[pid], len, &s.mt)) {
+ if (avch[pid].spspps[index_subsetsps].complete)
type = stereo;
- else if(!m_streams[video].Find(s))
+ else
type = video;
}
}
|