Commit 5ca59eb
fix(dvb-split): prevent Rust panic during DVB subtitle pipeline cleanup
When processing DVB streams with --split-dvb-subs, split pipelines can have
timing contexts where current_pts < min_pts even when pts_set >= 2. This causes
integer overflow in the Rust timing code when calculating fts_now.
Fixes:
- Add PTS validation before get_fts() in regular decoder cleanup
- Remove unsafe get_fts() call in split DVB pipeline cleanup, use fallback timing
Tested on tnt-uhf30-546MHz.ts (previously crashed) and 6 other samples.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 39646da commit 5ca59eb
1 file changed
+7
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| |||
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
330 | 327 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 328 | + | |
337 | 329 | | |
338 | 330 | | |
339 | 331 | | |
| |||
0 commit comments