Commit ec9fd21
fix: populate MKV Cues index on first screenshots() call
MKV demuxer loads Cues lazily — the AVIndexEntry array stays empty
until a seek triggers it. Do a seek to INT64_MIN at the start of
_screenshots_decode when the index has at most one entry. This gives
screenshots() the full keyframe index for proper seek-based frame
extraction instead of falling back to slow sequential decode.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1e38bf2 commit ec9fd21
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
| |||
0 commit comments