diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-28 20:20:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-30 12:22:30 +0100 |
| commit | 973f21989ce80584840c390bdf5f9e0c67301e98 (patch) | |
| tree | 68d0c08ccaab58c68563712ad9b3908b2d302c75 /src/lib/dcp_content.h | |
| parent | 0beaf6245ef0c1462cbe7eaf6faeabb651b68de3 (diff) | |
Cope with DCPs that have no video and hence no video encoding.
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 97e4b3cc4..80b7f64a8 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -191,7 +191,7 @@ public: return _standard.get(); } - VideoEncoding video_encoding() const { + boost::optional<VideoEncoding> video_encoding() const { boost::mutex::scoped_lock lm(_mutex); return _video_encoding; } @@ -258,7 +258,7 @@ private: EnumIndexedVector<bool, TextType> _reference_text; boost::optional<dcp::Standard> _standard; - VideoEncoding _video_encoding = VideoEncoding::JPEG2000; + boost::optional<VideoEncoding> _video_encoding; boost::optional<dcp::ContentKind> _content_kind; bool _three_d; /** ID of the CPL to use; older metadata might not specify this: in that case |
