]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvb: stop psi_section_reassemble from skipping packets
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 Jan 2013 00:08:34 +0000 (00:08 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 Jan 2013 00:08:34 +0000 (00:08 +0000)
src/psi.c

index 374815bf1c4e67066128c667e36d243d36acf41b..10133b8c7bc892c598552d1ec352c38348b471f5 100644 (file)
--- 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) {