summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-12-03 12:18:15 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-12-03 12:18:15 +0100
commit922649037fb7a3f4241ebbb7a64712a9f7052981 (patch)
tree095e87ba9f29d4e17aae7ee49fae2a6c9bafb34b /remux.c
parent2a379aaf7f04b17a3671d05170b094919363a8a4 (diff)
downloadvdr-922649037fb7a3f4241ebbb7a64712a9f7052981.tar.gz
vdr-922649037fb7a3f4241ebbb7a64712a9f7052981.tar.bz2
Improved TS/PES conversion to better handle lost TS packets
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c4
1 files changed, 2 insertions, 2 deletions
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 <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();