summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-04 00:56:03 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-04 02:19:15 +0100
commit1e2f9b0b1d0ece6daf4cf4f171c50f41bf07eb31 (patch)
tree3170cf995b749677c0e16e03f8bbef7de7fefd8f /src
parent2d060168c42e26ace396c36dfeb66577d18b9e14 (diff)
Catch extreme case of >=32 CPLs in a DCP.
Diffstat (limited to 'src')
-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;
+ }
}
}