summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-04 00:56:03 +0100
committerCarl Hetherington <cth@carlh.net>2026-04-25 12:55:26 +0200
commitaed05ddff5455be8d048accdc18ade82cb29371a (patch)
treeb56dcf8a45f99a3ba17902e0839ecc1fea30db72
parent303b306fb4c80992ea3679a032c6b338d7450935 (diff)
Catch extreme case of >=32 CPLs in a DCP.
-rw-r--r--src/wx/player_frame.cc3
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;
+ }
}
}