Bug #4515 ยป a.patch
src/input/mpegts/dvb_psi_lib.c | ||
---|---|---|
160 | 160 |
} |
161 | 161 | |
162 | 162 |
if(pusi) { |
163 |
int len = tsb[off++]; |
|
164 |
if(len > 0) { |
|
165 |
if(len > 188 - off) { |
|
166 |
mt->mt_sect.ps_lock = 0; |
|
167 |
return; |
|
168 |
} |
|
169 |
mpegts_psi_section_reassemble0(mt, logprefix, tsb + off, len, 0, crc, cb, opaque); |
|
170 |
off += len; |
|
163 |
uint8_t len = tsb[off++]; |
|
164 |
if (len > 188 - off) { |
|
165 |
mt->mt_sect.ps_lock = 0; |
|
166 |
return; |
|
171 | 167 |
} |
168 |
mpegts_psi_section_reassemble0(mt, logprefix, tsb + off, len, 0, crc, cb, opaque); |
|
169 |
off += len; |
|
172 | 170 |
} |
173 | 171 | |
174 | 172 |
while(off < 188) { |
... | ... | |
179 | 177 |
break; |
180 | 178 |
} |
181 | 179 |
off += r; |
182 |
pusi = 0; |
|
183 | 180 |
} |
184 | 181 |
} |
185 | 182 |