summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-09-04 10:13:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-09-04 10:13:14 +0200
commit96061c5b40cc940d9ae2860ba0a1a941486f3cf1 (patch)
tree1ea70e1b8dae716a5b9b1c57b6b7f5d73accbfac /remux.h
parent6c110a7272f7a6e57f93f4de4c6792ebbbccbf1e (diff)
downloadvdr-96061c5b40cc940d9ae2860ba0a1a941486f3cf1.tar.gz
vdr-96061c5b40cc940d9ae2860ba0a1a941486f3cf1.tar.bz2
Revoked the changes to cFrameDetector that have been introduced in version 1.7.19
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/remux.h b/remux.h
index 3204bb41..db0f6909 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.30 2011/06/12 12:49:17 kls Exp $
+ * $Id: remux.h 2.31 2011/09/04 09:09:33 kls Exp $
*/
#ifndef __REMUX_H
@@ -336,16 +336,16 @@ void PesDump(const char *Name, const u_char *Data, int Length);
// Frame detector:
+#define MIN_TS_PACKETS_FOR_FRAME_DETECTOR 2
+
class cFrameDetector {
private:
enum { MaxPtsValues = 150 };
int pid;
int type;
bool synced;
- bool newPayload;
bool newFrame;
bool independentFrame;
- int frameTypeOffset;
uint32_t ptsValues[MaxPtsValues]; // 32 bit is enough - we only need the delta
int numPtsValues;
int numFrames;
@@ -377,11 +377,6 @@ public:
///< Analyze() needs to be called again with more actual data.
bool Synced(void) { return synced; }
///< Returns true if the frame detector has synced on the data stream.
- bool NewPayload(void) { return newPayload; }
- ///< Returns true if the data given to the last call to Analyze() started a
- ///< new payload. The caller should remember the current file offset in
- ///< order to be able to generate an index entry later, when NewFrame()
- ///< returns true.
bool NewFrame(void) { return newFrame; }
///< Returns true if the data given to the last call to Analyze() started a
///< new frame.