From 4f82cf8273f92719465ff3faec50c8e3a84561b3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 May 2016 00:53:14 +0100 Subject: [PATCH] Fix two crashes with Debian-shipped FFmpeg. --- src/lib/ffmpeg_content.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 9a3348301..7a1585ca2 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -478,7 +478,7 @@ FFmpegContent::add_properties (list& p) const _("SMPTE ST 428-1 (CIE 1931 XYZ)") }; - DCPOMATIC_ASSERT (AVCOL_PRI_NB == 11); + DCPOMATIC_ASSERT (AVCOL_PRI_NB <= 11); p.push_back (UserProperty (_("Video"), _("Colour primaries"), primaries[_color_primaries])); char const * transfers[] = { @@ -502,7 +502,7 @@ FFmpegContent::add_properties (list& p) const _("SMPTE ST 428-1") }; - DCPOMATIC_ASSERT (AVCOL_TRC_NB == 18); + DCPOMATIC_ASSERT (AVCOL_TRC_NB <= 18); p.push_back (UserProperty (_("Video"), _("Colour transfer characteristic"), transfers[_color_trc])); char const * spaces[] = { -- 2.30.2