summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-12-13 14:43:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-12-13 14:43:22 +0100
commit22feb7bf1cfc0bff0742fd23657de853b63f1890 (patch)
treeb6c7434ae85cdcd507277ea622c2b5d34f0ccc23 /remux.h
parent3c7d1a16aca49c647320c0ee67759007fa06a845 (diff)
downloadvdr-22feb7bf1cfc0bff0742fd23657de853b63f1890.tar.gz
vdr-22feb7bf1cfc0bff0742fd23657de853b63f1890.tar.bz2
Improved handling PES video packets with zero length when converting from TS to PES
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/remux.h b/remux.h
index fe792ebf..f471504f 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 2.2 2008/09/06 14:48:28 kls Exp $
+ * $Id: remux.h 2.3 2008/12/13 13:55:07 kls Exp $
*/
#ifndef __REMUX_H
@@ -138,6 +138,11 @@ inline bool PesLongEnough(int Length)
return Length >= 6;
}
+inline bool PesHasLength(const uchar *p)
+{
+ return p[4] | p[5];
+}
+
inline int PesLength(const uchar *p)
{
return 6 + p[4] * 256 + p[5];
@@ -241,6 +246,7 @@ private:
uchar *data;
int size;
int length;
+ int offset;
bool synced;
public:
cTsToPes(void);