diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-09-06 03:31:00 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-09-06 03:31:00 +0400 |
commit | 6de911a7bb30defdd8650dc970c8f1f931f3763b (patch) | |
tree | 95796f04a06270c6ebcbb1b5aade141c8c3be5a7 /src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | |
parent | b503105c1562a9471b8f584407cdc225783fe7f7 (diff) |
Fix : MPEGSplitter - incorrect detect H.264 stream, ticket #714;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2485 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp')
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp index 17d31b454..9f134e28a 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp @@ -1493,7 +1493,12 @@ bool CBaseSplitterFileEx::Read(avchdr& h, int len, CMediaType* pmt) if(!h.spspos || !h.spslen || !h.ppspos || !h.ppslen)
return(false);
- if(!h.AvgTimePerFrame || (h.level<10))
+ if(!h.AvgTimePerFrame || !(
+ (h.level == 10) || (h.level == 11) || (h.level == 12) || (h.level == 13) ||
+ (h.level == 20) || (h.level == 21) || (h.level == 22) ||
+ (h.level == 30) || (h.level == 31) || (h.level == 32) ||
+ (h.level == 40) || (h.level == 41) || (h.level == 42) ||
+ (h.level == 50) || (h.level == 51)))
return(false);
if(!pmt) return(true);
|