summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-04-05 09:38:13 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2010-04-05 09:38:13 +0200
commitdb5c3cd36a3aa5ab57811a830c79ca5ebd3edad1 (patch)
treedb5ba3174ee9eef3c9af78f915f70eb48deabb0f /remux.c
parent1bf0c3d23ad0946186af54ed4835f4db65780e77 (diff)
downloadvdr-db5c3cd36a3aa5ab57811a830c79ca5ebd3edad1.tar.gz
vdr-db5c3cd36a3aa5ab57811a830c79ca5ebd3edad1.tar.bz2
Fixed cFrameDetector::Analyze() in case part of the data has been processed and there is less than MIN_TS_PACKETS_FOR_FRAME_DETECTOR left
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remux.c b/remux.c
index 2532c638..4b845a13 100644
--- a/remux.c
+++ b/remux.c
@@ -1,10 +1,10 @@
/*
- * remux.h: Tools for detecting frames and handling PAT/PMT
+ * remux.c: Tools for detecting frames and handling PAT/PMT
*
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.c 2.42 2010/02/28 14:42:07 kls Exp $
+ * $Id: remux.c 2.43 2010/04/05 09:32:57 kls Exp $
*/
#include "remux.h"
@@ -817,7 +817,7 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
if (synced && Processed)
return Processed;
if (Length < MIN_TS_PACKETS_FOR_FRAME_DETECTOR * TS_SIZE)
- return 0; // need more data, in case the frame type is not stored in the first TS packet
+ return Processed; // need more data, in case the frame type is not stored in the first TS packet
if (!frameDuration) {
// frame duration unknown, so collect a sequence of PTS values:
if (numPtsValues < MaxPtsValues && numIFrames < 2) { // collect a sequence containing at least two I-frames