diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-15 09:52:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-15 09:52:43 +0200 |
commit | adb92a1999eb0dae3136da8d48a4d64df0407a76 (patch) | |
tree | 82e3d2a579bc1d9029a0f163a4bda475d7bd7312 /remux.c | |
parent | fc4bed511d1ab6faedffedd34846198b5955c5fd (diff) | |
download | vdr-adb92a1999eb0dae3136da8d48a4d64df0407a76.tar.gz vdr-adb92a1999eb0dae3136da8d48a4d64df0407a76.tar.bz2 |
The cutter now sets the 'broken link' flag for MPEG2 TS recordings
Diffstat (limited to 'remux.c')
-rw-r--r-- | remux.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.c 2.57 2011/06/12 14:24:09 kls Exp $ + * $Id: remux.c 2.58 2011/08/15 09:50:14 kls Exp $ */ #include "remux.h" @@ -135,8 +135,11 @@ void TsSetTeiOnBrokenPackets(uchar *p, int l) if (!Processed[Pid]) { if (!TsPayloadStart(p)) p[1] |= TS_ERROR; - else + else { Processed[Pid] = true; + int offs = TsPayloadOffset(p); + cRemux::SetBrokenLink(p + offs, TS_SIZE - offs); + } } l -= TS_SIZE; p += TS_SIZE; |