i = count-p; memcpy(demux->tsbuf, buf+p, i); demux->tsbufp=i; 
i = count - p; memcpy(demux->tsbuf, &buf[p], i); demux->tsbufp = i; 
void dvb_dmx_swfilter(struct dvb_demux *demux, const u8 *buf, size_t count){	int p = 0, i, j;	spin_lock(&demux->lock);	if ((i = demux->tsbufp)) {		if (count < (j=188-i)) {			memcpy(&demux->tsbuf[i], buf, count);			demux->tsbufp += count;			goto bailout;		}		memcpy(&demux->tsbuf[i], buf, j);		if (demux->tsbuf[0] == 0x47)			dvb_dmx_swfilter_packet(demux, demux->tsbuf);		demux->tsbufp = 0;		p += j;	}	while (p < count) {		if (buf[p] == 0x47) {			if (count-p >= 188) {				dvb_dmx_swfilter_packet(demux, buf+p);				p += 188;			} else {				i = count-p;				memcpy(demux->tsbuf, buf+p, i);				demux->tsbufp=i;				goto bailout;			}		} else			p++;	}bailout:	spin_unlock(&demux->lock);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/dad4a73071532448f6cee29791476494a8eb3a58/dvb_demux.c/clean/drivers/media/dvb/dvb-core/dvb_demux.c