diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-10-29 02:39:11 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-10-29 22:04:03 +0400 |
commit | c416bd16471dc148b3ef82245d32a94a2f20c0ab (patch) | |
tree | dc26f06fc4db4425540e194476ff4840904757cf /src/filters/parser/BaseSplitter | |
parent | 408a418c2793da1a49111fa305639efe2fab8555 (diff) |
MPEG Splitter: Fix parsing of some malformed TS files.
Relax a bit the error checking when parsing the PES headers, issue a warning instead of stopping parsing.
Diffstat (limited to 'src/filters/parser/BaseSplitter')
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp index 4ce195d83..fdb4bc984 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp @@ -215,8 +215,7 @@ bool CBaseSplitterFileEx::Read(peshdr& h, BYTE code) if (h.type == mpeg2) {
BYTE b = (BYTE)BitRead(4);
if (!(h.fdts && b == 3 || !h.fdts && b == 2)) {
- /*ASSERT(0);*/
- return false;
+ TRACE(_T("[PES header parser] Warning: Invalid PTS marker\n"));
}
}
@@ -232,8 +231,7 @@ bool CBaseSplitterFileEx::Read(peshdr& h, BYTE code) if (h.fdts) {
if ((BYTE)BitRead(4) != 1) {
- /*ASSERT(0);*/
- return false;
+ TRACE(_T("[PES header parser] Warning: Invalid DTS marker\n"));
}
h.dts = 0;
|