summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-09-04 13:09:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-09-04 13:09:06 +0200
commit699fd6d5d70030aef5e34494c719d37d4f0cc03f (patch)
tree790a83ff09d1e3630441eb0b6c4ca99250d5ed8e /remux.h
parent96061c5b40cc940d9ae2860ba0a1a941486f3cf1 (diff)
downloadvdr-699fd6d5d70030aef5e34494c719d37d4f0cc03f.tar.gz
vdr-699fd6d5d70030aef5e34494c719d37d4f0cc03f.tar.bz2
Detecting frames in case the Picture Start Code or Access Unit Delimiter extends over TS packet boundaries is now done by locally skipping TS packets in cFrameDetector1.7.21
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/remux.h b/remux.h
index db0f6909..b8822796 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.31 2011/09/04 09:09:33 kls Exp $
+ * $Id: remux.h 2.32 2011/09/04 12:48:26 kls Exp $
*/
#ifndef __REMUX_H
@@ -336,7 +336,7 @@ void PesDump(const char *Name, const u_char *Data, int Length);
// Frame detector:
-#define MIN_TS_PACKETS_FOR_FRAME_DETECTOR 2
+#define MIN_TS_PACKETS_FOR_FRAME_DETECTOR 5
class cFrameDetector {
private:
@@ -359,6 +359,7 @@ private:
int payloadUnitOfFrame;
bool scanning;
uint32_t scanner;
+ int SkipPackets(const uchar *&Data, int &Length, int &Processed, int &FrameTypeOffset);
public:
cFrameDetector(int Pid = 0, int Type = 0);
///< Sets up a frame detector for the given Pid and stream Type.