summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-28 20:20:13 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-30 12:22:30 +0100
commit973f21989ce80584840c390bdf5f9e0c67301e98 (patch)
tree68d0c08ccaab58c68563712ad9b3908b2d302c75 /src/tools
parent0beaf6245ef0c1462cbe7eaf6faeabb651b68de3 (diff)
Cope with DCPs that have no video and hence no video encoding.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic_player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc
index 3b121b677..415dbf3ba 100644
--- a/src/tools/dcpomatic_player.cc
+++ b/src/tools/dcpomatic_player.cc
@@ -524,7 +524,7 @@ public:
_film->set_video_frame_rate(dcp->video_frame_rate().get());
}
- switch (dcp->video_encoding()) {
+ switch (dcp->video_encoding().get_value_or(VideoEncoding::JPEG2000)) {
case VideoEncoding::JPEG2000:
_viewer.set_optimisation(Optimisation::JPEG2000);
break;