From eb753aa4027cfd74cd38576e4686a6cc67bc5c6b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 16 Dec 2016 16:10:13 +0000 Subject: [PATCH] Fix for new bits in FFmpeg (#1033). --- ChangeLog | 2 ++ src/lib/ffmpeg_content.cc | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ba0cefe1..e299a4eb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-12-16 Carl Hetherington + * Fix crash on opening properties dialogue (#1033). + * Confirm overwrite of KDMs (#1008). * Add preference for default KDM target directory (#1013). diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 77c7c9ecd..0e782c9db 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -517,10 +517,12 @@ FFmpegContent::add_properties (list& p) const _("SMPTE 240M"), _("Film"), _("BT2020"), - _("SMPTE ST 428-1 (CIE 1931 XYZ)") + _("SMPTE ST 428-1 (CIE 1931 XYZ)"), + _("SMPTE ST 431-2 (2011)"), + _("SMPTE ST 432-1 D65 (2010)") }; - DCPOMATIC_ASSERT (AVCOL_PRI_NB <= 11); + DCPOMATIC_ASSERT (AVCOL_PRI_NB <= 13); p.push_back (UserProperty (UserProperty::VIDEO, _("Colour primaries"), primaries[_color_primaries])); char const * transfers[] = { @@ -560,9 +562,10 @@ FFmpegContent::add_properties (list& p) const _("YCOCG"), _("BT2020 non-constant luminance"), _("BT2020 constant luminance"), + _("SMPTE 2085, Y'D'zD'x"), }; - DCPOMATIC_ASSERT (AVCOL_SPC_NB == 11); + DCPOMATIC_ASSERT (AVCOL_SPC_NB == 12); p.push_back (UserProperty (UserProperty::VIDEO, _("Colourspace"), spaces[_colorspace])); if (_bits_per_pixel) { -- 2.30.2