summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-20 09:07:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-20 09:07:26 +0200
commit3a19051c76ef19706e227ab971184a0e77a23e3c (patch)
tree2ba1b2ed92dad3c6bf5d0b4d629ed6737d127bad /remux.c
parentf4007c7ff3d1f1f686bf3c74399027f7d91de86b (diff)
downloadvdr-3a19051c76ef19706e227ab971184a0e77a23e3c.tar.gz
vdr-3a19051c76ef19706e227ab971184a0e77a23e3c.tar.bz2
Fixed detecting frames for channels that split frames into several payloads
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/remux.c b/remux.c
index f174f614..28188bd6 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.58 2011/08/15 09:50:14 kls Exp $
+ * $Id: remux.c 2.59 2011/08/20 09:07:26 kls Exp $
*/
#include "remux.h"
@@ -974,8 +974,10 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
payloadUnitOfFrame = (payloadUnitOfFrame + 1) % -framesPerPayloadUnit;
if (payloadUnitOfFrame != 0 && independentFrame)
payloadUnitOfFrame = 0;
- if (payloadUnitOfFrame)
+ if (payloadUnitOfFrame) {
+ newPayload = false;
newFrame = false;
+ }
}
if (framesPerPayloadUnit <= 1)
scanning = false;