From 0b16c754c1c4e80a15019ef386e23b1598c6c3fc Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Thu, 31 Jan 2013 00:08:34 +0000 Subject: [PATCH] dvb: stop psi_section_reassemble from skipping packets --- src/psi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/psi.c b/src/psi.c index 374815bf..10133b8c 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) {