summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-24 09:26:23 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-24 09:26:23 +0200
commit343df6266eed68ef4d3f683e383e7237c0b75cdd (patch)
treedd3fd9181cbf691e5b722d76abe4fca43eb1dfe6 /remux.c
parentd507645323aa4bc49404645c4998bcd02fddc789 (diff)
downloadvdr-343df6266eed68ef4d3f683e383e7237c0b75cdd.tar.gz
vdr-343df6266eed68ef4d3f683e383e7237c0b75cdd.tar.bz2
Increased the required free buffer space in the resultBuffer of cRemux
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remux.c b/remux.c
index 2c1c9f2e..e096f9cc 100644
--- a/remux.c
+++ b/remux.c
@@ -8,7 +8,7 @@
* the Linux DVB driver's 'tuxplayer' example and were rewritten to suit
* VDR's needs.
*
- * $Id: remux.c 1.20 2004/10/23 12:06:13 kls Exp $
+ * $Id: remux.c 1.21 2004/10/24 09:25:33 kls Exp $
*/
#include "remux.h"
@@ -491,8 +491,8 @@ int cRemux::Put(const uchar *Data, int Count)
break;
if (Data[i] != TS_SYNC_BYTE)
break;
- if (resultBuffer->Free() < IPACKS)
- break;
+ if (resultBuffer->Free() < 2 * IPACKS)
+ break; // A cTS2PES might write one full packet and also a small rest
int pid = GetPid(Data + i + 1);
if (Data[i + 3] & 0x10) { // got payload
if (pid == vPid) vTS2PES->ts_to_pes(Data + i);