diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-04 00:56:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:51 +0100 |
| commit | b321d8b3148f2a5a3bec120da3d53f7d7b3e8c48 (patch) | |
| tree | 02e2a71267fcd695b911b82b6ecbe43008cba118 | |
| parent | 5a2d4da4e67ca2ee6f7ea5bac3b6913457c75df9 (diff) | |
Catch extreme case of >=32 CPLs in a DCP.
| -rw-r--r-- | src/wx/player_frame.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/player_frame.cc b/src/wx/player_frame.cc index a977165a8..c5fcd4200 100644 --- a/src/wx/player_frame.cc +++ b/src/wx/player_frame.cc @@ -499,6 +499,9 @@ PlayerFrame::prepare_to_play_film(optional<float> crop_to_ratio) ); j->Check(!first->cpl() || i->id() == *first->cpl()); ++id; + if (id >= (ID_view_cpl + MAX_CPLS)) { + break; + } } } |
