From 922649037fb7a3f4241ebbb7a64712a9f7052981 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 3 Dec 2005 12:18:15 +0100 Subject: [PATCH] Improved TS/PES conversion to better handle lost TS packets --- CONTRIBUTORS | 1 + HISTORY | 2 ++ remux.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c4173a03..f0005f48 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1007,6 +1007,7 @@ Reinhard Nissl for suggesting to always use stream id 0xE0 for the video stream, to avoid problems with post processing tools that choke on different ids for fixing cDvbPlayer::SkipFrames() to properly handle radio recordings + for improving TS/PES conversion to better handle lost TS packets Richard Robson for reporting freezing replay if a timer starts while in Transfer Mode from the diff --git a/HISTORY b/HISTORY index 98d0c157..dc6187e0 100644 --- a/HISTORY +++ b/HISTORY @@ -3967,3 +3967,5 @@ Video Disk Recorder Revision History - Fixed handling second audio and Dolby Digital PIDs for encrypted channels (was broken in version 1.3.37). +- Improved TS/PES conversion to better handle lost TS packets (thanks to + Reinhard Nissl). diff --git a/remux.c b/remux.c index c6130892..3f513e99 100644 --- a/remux.c +++ b/remux.c @@ -11,7 +11,7 @@ * The cRepacker family's code was originally written by Reinhard Nissl , * and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de. * - * $Id: remux.c 1.47 2005/09/11 11:00:00 kls Exp $ + * $Id: remux.c 1.48 2005/12/03 12:06:23 kls Exp $ */ #include "remux.h" @@ -1650,7 +1650,7 @@ void cTS2PES::ts_to_pes(const uint8_t *Buf) // don't need count (=188) } if (Buf[1] & PAY_START) { - if (plength == MMAX_PLENGTH - 6 && found > 6) { + if (found > 6) { plength = found - 6; found = 0; send_ipack();