Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2012-10-29 02:39:11 +0400
committerUnderground78 <underground78@users.sourceforge.net>2012-10-29 22:04:03 +0400
commitc416bd16471dc148b3ef82245d32a94a2f20c0ab (patch)
treedc26f06fc4db4425540e194476ff4840904757cf /src/filters/parser/BaseSplitter
parent408a418c2793da1a49111fa305639efe2fab8555 (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.cpp6
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;