From ff1422a75a753789633f48c01726324107a237e6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 8 Mar 2014 15:10:24 +0100 Subject: Fixed handling PAT packets when detecting frames --- HISTORY | 2 ++ remux.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index af9d478d..ef1cd6c0 100644 --- a/HISTORY +++ b/HISTORY @@ -7902,3 +7902,5 @@ Video Disk Recorder Revision History that have no audio pid (reported by Christian Winkler). - Fixed a possible endless loop in cH264Parser::GetGolombUe(), which caused recordings on some HD channels to get stuck and resulted in buffer overflows. +- Fixed handling PAT packets when detecting frames, so that they can be properly + taken into account when regenerating the index of a recording. diff --git a/remux.c b/remux.c index 20ea57af..c42bf933 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.75.1.4 2014/03/08 15:08:30 kls Exp $ + * $Id: remux.c 2.75.1.5 2014/03/08 15:10:24 kls Exp $ */ #include "remux.h" @@ -281,6 +281,8 @@ uchar cTsPayload::GetByte(void) break; } } + else if (TsPid(p) == PATPID) + return SetEof(); // caller must see PAT packets in case of index regeneration else numPacketsOther++; } -- cgit v1.2.3