diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-04 00:56:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-25 12:55:26 +0200 |
| commit | aed05ddff5455be8d048accdc18ade82cb29371a (patch) | |
| tree | b56dcf8a45f99a3ba17902e0839ecc1fea30db72 | |
| parent | 303b306fb4c80992ea3679a032c6b338d7450935 (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; + } } } |
