diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-03 12:18:15 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-03 12:18:15 +0100 |
commit | 922649037fb7a3f4241ebbb7a64712a9f7052981 (patch) | |
tree | 095e87ba9f29d4e17aae7ee49fae2a6c9bafb34b | |
parent | 2a379aaf7f04b17a3671d05170b094919363a8a4 (diff) | |
download | vdr-922649037fb7a3f4241ebbb7a64712a9f7052981.tar.gz vdr-922649037fb7a3f4241ebbb7a64712a9f7052981.tar.bz2 |
Improved TS/PES conversion to better handle lost TS packets
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | 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 <rnissl@gmx.de> 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 <richard_robson@beeb.net> for reporting freezing replay if a timer starts while in Transfer Mode from the @@ -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). @@ -11,7 +11,7 @@ * The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>, * 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(); |