Update to match new FFmpeg; fixes #1296.
authorCarl Hetherington <cth@carlh.net>
Sun, 13 May 2018 22:35:10 +0000 (23:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 May 2018 22:35:10 +0000 (23:35 +0100)
src/lib/ffmpeg_content.cc

index 06ed5a8014f81db7b29b3efe1bf73c1017a789b1..26d3b88da2602de671e4c5f5a675246234fa113b 100644 (file)
@@ -519,10 +519,20 @@ FFmpegContent::add_properties (list<UserProperty>& p) const
                        _("BT2020"),
                        _("SMPTE ST 428-1 (CIE 1931 XYZ)"),
                        _("SMPTE ST 431-2 (2011)"),
-                       _("SMPTE ST 432-1 D65 (2010)")
+                       _("SMPTE ST 432-1 D65 (2010)"), // 12
+                       "", // 13
+                       "", // 14
+                       "", // 15
+                       "", // 16
+                       "", // 17
+                       "", // 18
+                       "", // 19
+                       "", // 20
+                       "", // 21
+                       _("JEDEC P22")
                };
 
-               DCPOMATIC_ASSERT (AVCOL_PRI_NB <= 13);
+               DCPOMATIC_ASSERT (AVCOL_PRI_NB <= 23);
                p.push_back (UserProperty (UserProperty::VIDEO, _("Colour primaries"), primaries[_color_primaries]));
 
                char const * transfers[] = {
@@ -563,9 +573,12 @@ FFmpegContent::add_properties (list<UserProperty>& p) const
                        _("BT2020 non-constant luminance"),
                        _("BT2020 constant luminance"),
                        _("SMPTE 2085, Y'D'zD'x"),
+                       _("Chroma-derived non-constant luminance"),
+                       _("Chroma-derived constant luminance"),
+                       _("BT2100")
                };
 
-               DCPOMATIC_ASSERT (AVCOL_SPC_NB == 12);
+               DCPOMATIC_ASSERT (AVCOL_SPC_NB == 15);
                p.push_back (UserProperty (UserProperty::VIDEO, _("Colourspace"), spaces[_colorspace]));
 
                if (_bits_per_pixel) {