From: Adam Sutton Date: Thu, 31 Jan 2013 00:08:34 +0000 (+0000) Subject: dvb: stop psi_section_reassemble from skipping packets X-Git-Tag: v3.5~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b16c754c1c4e80a15019ef386e23b1598c6c3fc;p=thirdparty%2Ftvheadend.git dvb: stop psi_section_reassemble from skipping packets --- diff --git a/src/psi.c b/src/psi.c index 374815bf1..10133b8c7 100644 --- a/src/psi.c +++ b/src/psi.c @@ -89,15 +89,15 @@ psi_section_reassemble(psi_section_t *ps, const uint8_t *tsb, int crc, int len = tsb[off++]; if(len > 0) { if(len > 188 - off) { - ps->ps_lock = 0; - return; + ps->ps_lock = 0; + return; } psi_section_reassemble0(ps, tsb + off, len, 0, crc, cb, opaque); off += len; } } - while(off < 188 && tsb[off] != 0xff) { + while(off < 188) { r = psi_section_reassemble0(ps, tsb + off, 188 - off, pusi, crc, cb, opaque); if(r < 0) {