From b321d8b3148f2a5a3bec120da3d53f7d7b3e8c48 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 4 Feb 2026 00:56:03 +0100 Subject: Catch extreme case of >=32 CPLs in a DCP. --- src/wx/player_frame.cc | 3 +++ 1 file changed, 3 insertions(+) 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 crop_to_ratio) ); j->Check(!first->cpl() || i->id() == *first->cpl()); ++id; + if (id >= (ID_view_cpl + MAX_CPLS)) { + break; + } } } -- cgit v1.2.3