diff options
author | schmirl <schmirl> | 2009-02-13 13:02:39 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2009-02-13 13:02:39 +0000 |
commit | 3d16ba08409e5ca42eec427ef742809cc875f0b0 (patch) | |
tree | a8ee19979caa1f49a5e4b3d9df1c28eadbc40821 | |
parent | 78410ea5761eab03a7bc33852e85621594df7254 (diff) | |
download | vdr-plugin-streamdev-3d16ba08409e5ca42eec427ef742809cc875f0b0.tar.gz vdr-plugin-streamdev-3d16ba08409e5ca42eec427ef742809cc875f0b0.tar.bz2 |
added comments to indicate that the VTP filter stream is proprietary format
Modified Files:
client/filter.c server/livefilter.c
-rw-r--r-- | client/filter.c | 3 | ||||
-rw-r--r-- | server/livefilter.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/client/filter.c b/client/filter.c index e88defa..c187e05 100644 --- a/client/filter.c +++ b/client/filter.c @@ -1,5 +1,5 @@ /* - * $Id: filter.c,v 1.13 2008/10/13 11:30:06 schmirl Exp $ + * $Id: filter.c,v 1.14 2009/02/13 13:02:39 schmirl Exp $ */ #include "client/filter.h" @@ -227,6 +227,7 @@ void cStreamdevFilters::Action(void) { u_short pid = (((u_short)block[1] & PID_MASK_HI) << 8) | block[2]; u_char tid = block[3]; bool Pusi = block[1] & 0x40; + // proprietary extension int len = block[4]; #if 0 if (block[1] == 0xff && diff --git a/server/livefilter.c b/server/livefilter.c index 730fedc..67b0e37 100644 --- a/server/livefilter.c +++ b/server/livefilter.c @@ -1,5 +1,5 @@ /* - * $Id: livefilter.c,v 1.6 2009/02/13 10:39:22 schmirl Exp $ + * $Id: livefilter.c,v 1.7 2009/02/13 13:02:40 schmirl Exp $ */ #include "server/livefilter.h" @@ -26,6 +26,7 @@ void cStreamdevLiveFilter::Process(u_short Pid, u_char Tid, const u_char *Data, buffer[1] = ((Pid >> 8) & 0x3f) | (pos==0 ? 0x40 : 0); /* bit 6: payload unit start indicator (PUSI) */ buffer[2] = Pid & 0xff; buffer[3] = Tid; + // this makes it a proprietary stream buffer[4] = (uchar)chunk; memcpy(buffer + 5, Data + pos, chunk); length -= chunk; |