diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-23 00:53:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-23 00:53:14 +0100 |
| commit | 4f82cf8273f92719465ff3faec50c8e3a84561b3 (patch) | |
| tree | 35a7e5121ac943a9e45ae80e051d1050763ca1c9 /src/lib | |
| parent | 062dfa793fe484fe6eeb3828fa6462b50b6a6b27 (diff) | |
Fix two crashes with Debian-shipped FFmpeg.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg_content.cc | 4 |
1 files 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<UserProperty>& 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<UserProperty>& 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[] = { |
