From 3a19051c76ef19706e227ab971184a0e77a23e3c Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 20 Aug 2011 09:07:26 +0200 Subject: Fixed detecting frames for channels that split frames into several payloads --- remux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'remux.c') 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; -- cgit v1.2.3