From 6a51ae8c85791b26ae288939eac5ec4c6b4efc45 Mon Sep 17 00:00:00 2001 From: Kenneth Aafloy Date: Fri, 27 Aug 2004 15:58:08 +0000 Subject: - Revert the last change, untill a method which does not overflow. --- linux/drivers/media/dvb/dvb-core/dvb_demux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c index 93129df3e..8b79bee75 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c @@ -342,8 +342,7 @@ static int dvb_dmx_swfilter_section_packet(struct dvb_demux_feed *feed, const u8 const u8 *after = before+before_len; u8 after_len = count-1-before_len; - if(feed->feed.sec.tsfeedp > 0) - dvb_dmx_swfilter_section_copy_dump(feed, before, before_len); + dvb_dmx_swfilter_section_copy_dump(feed, before, before_len); dvb_dmx_swfilter_section_new(feed); dvb_dmx_swfilter_section_copy_dump(feed, after, after_len); } @@ -353,7 +352,7 @@ static int dvb_dmx_swfilter_section_packet(struct dvb_demux_feed *feed, const u8 printk("dvb_demux.c PUSI=1 but %d bytes lost\n", count); #endif } - else if(feed->feed.sec.tsfeedp > 0) + else { // PUSI=0 (is not set), no section boundary const u8 *entire = buf+p; -- cgit v1.2.3