summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-23 14:19:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-23 14:19:58 +0100
commita1e7922938187e6d45e3e6603ca2aa0656fb7f71 (patch)
treed3d5b16b3fc83037ae571434868146ccb89ba31d /remux.c
parent1789a813f77dcfbb92284667ee37d4d0dec39b5a (diff)
downloadvdr-a1e7922938187e6d45e3e6603ca2aa0656fb7f71.tar.gz
vdr-a1e7922938187e6d45e3e6603ca2aa0656fb7f71.tar.bz2
Fixed handling the pointer field in cPatPmtParser::ParsePmt()
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remux.c b/remux.c
index e58c914f..b9062a3a 100644
--- a/remux.c
+++ b/remux.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.c 2.7 2009/01/16 15:25:42 kls Exp $
+ * $Id: remux.c 2.8 2009/01/23 14:17:07 kls Exp $
*/
#include "remux.h"
@@ -359,8 +359,8 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length)
{
// The PMT may extend over several TS packets, so we need to assemble them
if (pmtSize == 0) {
- Data += Data[0] + 1; // this is the first packet
Length -= Data[0] + 1;
+ Data += Data[0] + 1; // this is the first packet
if (SectionLength(Data, Length) > Length) {
if (Length <= int(sizeof(pmt))) {
memcpy(pmt, Data, Length);