diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-04-12 18:35:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-04-12 18:35:49 +0100 |
| commit | aa8843ee88691dfafa32079d80b94fbdb936f7a0 (patch) | |
| tree | 922322736e0d81eb6a874d658228c2e8166ae4c3 /src/lib | |
| parent | fed92cb518dcd7449ccae2f8b7fb5984b71fc594 (diff) | |
Fix ISDCF name test and add check to see if a mapped channel is included in the DCP.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 3aed4d965..297193f83 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -641,6 +641,11 @@ Film::isdcf_name (bool if_created_now) const int non_lfe = 0; int lfe = 0; for (list<dcp::Channel>::const_iterator i = mapped.begin(); i != mapped.end(); ++i) { + if (static_cast<int> (*i) >= audio_channels()) { + /* This channel is mapped but is not included in the DCP */ + continue; + } + if ((*i) == dcp::LFE) { ++lfe; } else { |
