added comments to indicate that the VTP filter stream is proprietary format

Modified Files:
	client/filter.c server/livefilter.c
This commit is contained in:
schmirl
2009-02-13 13:02:39 +00:00
parent 78410ea576
commit 3d16ba0840
2 changed files with 4 additions and 2 deletions

View File

@@ -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;