diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-08-23 09:34:13 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-08-23 09:34:13 +0400 |
commit | 9d09c0a0c844bdb97502264e27148ba6d1cde805 (patch) | |
tree | 0af1174aa5dcc91441ef871fad1d9dc105a37494 | |
parent | 98cc492f990e6e8170fd2953902ab0b2ec342d3a (diff) |
Fix : MPEGSplitter - incorrect stream detect(better E-AC3 header parse);
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2306 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp index 45c9e9a79..8048f043d 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp @@ -629,9 +629,9 @@ bool CBaseSplitterFileEx::Read(ac3hdr& h, int len, CMediaType* pmt) /* Enhanced AC-3 */
Seek(pos);
h.frame_type = BitRead(2);
- if(h.frame_type == 3)
- return(false);
h.substreamid = BitRead(3);
+ if(h.frame_type || h.substreamid)
+ return(false);
h.frame_size = (BitRead(11) + 1) << 1;
if(h.frame_size < 7)
return(false);
|