X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilm.cc;h=297193f83e8ecd1669abadf668a3bd25da9396a0;hb=aa8843ee88691dfafa32079d80b94fbdb936f7a0;hp=3aed4d9657ff088b6464ca5ede71e78abf2d2bf0;hpb=fed92cb518dcd7449ccae2f8b7fb5984b71fc594;p=dcpomatic.git 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::const_iterator i = mapped.begin(); i != mapped.end(); ++i) { + if (static_cast (*i) >= audio_channels()) { + /* This channel is mapped but is not included in the DCP */ + continue; + } + if ((*i) == dcp::LFE) { ++lfe; } else {