diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-07-10 02:27:36 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-07-10 02:27:36 +0400 |
commit | 9da4064ac2e01b42480d20d0a6a43e3d5f801a5a (patch) | |
tree | b07d3842c227313dd2e4b562bbcc71925ff21df4 /src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | |
parent | 3e04f29ad1e8b2222585610d5c2582a3dddac9f9 (diff) |
Fix : incorrect identification of the video stream (H.264 instead of MPEG2) in MPEG splitter;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2113 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp')
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp index ce716df10..aae181321 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp @@ -1454,6 +1454,9 @@ 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))
+ return(false);
if(!pmt) return(true);
|