summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-12-27 11:00:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2021-12-27 11:00:05 +0100
commitba5eee6cb825b3820bda9310d6c3a4f56463b615 (patch)
tree9f1cc31458729ea78ae60303721e04bb01321d8d /remux.h
parent1861074241f1a6ee71372ce3cd474f19a4a2867c (diff)
downloadvdr-ba5eee6cb825b3820bda9310d6c3a4f56463b615.tar.gz
vdr-ba5eee6cb825b3820bda9310d6c3a4f56463b615.tar.bz2
Fixed cTsPayload::AtPayloadStart() to ignore TS packets from other PIDs
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/remux.h b/remux.h
index 6ff3c971..9638dea6 100644
--- a/remux.h
+++ b/remux.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.h 4.6 2020/09/16 13:48:33 kls Exp $
+ * $Id: remux.h 4.6.1.1 2021/12/27 10:58:36 kls Exp $
*/
#ifndef __REMUX_H
@@ -249,7 +249,7 @@ public:
bool AtTsStart(void) { return index < length && (index % TS_SIZE) == 0; }
///< Returns true if this payload handler is currently pointing to first byte
///< of a TS packet.
- bool AtPayloadStart(void) { return AtTsStart() && TsPayloadStart(data + index); }
+ bool AtPayloadStart(void) { return AtTsStart() && TsPayloadStart(data + index) && TsPid(data + index) == pid; }
///< Returns true if this payload handler is currently pointing to the first byte
///< of a TS packet that starts a new payload.
int Available(void) { return length - index; }