Fix uninitialised _video_encoding when loading films from 2.16.x.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2025 22:46:30 +0000 (23:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2025 22:46:30 +0000 (23:46 +0100)
src/lib/dcp_content.h

index a866703f2e9ba145994d28465f40d2d2746e37c9..e781633d4400860fdd29c47ffe7a6fa02a7afbfc 100644 (file)
@@ -226,7 +226,7 @@ private:
        EnumIndexedVector<bool, TextType> _reference_text;
 
        boost::optional<dcp::Standard> _standard;
-       VideoEncoding _video_encoding;
+       VideoEncoding _video_encoding = VideoEncoding::JPEG2000;
        boost::optional<dcp::ContentKind> _content_kind;
        bool _three_d;
        /** ID of the CPL to use; older metadata might not specify this: in that case