X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcinema_sound_processor.cc;h=0b00ee2ee237f90a9d056e17e3cd92fc3a095b9f;hb=1db0293ad36605da9ca8daa8736ef581f4f6a34e;hp=485af3fd66168848ab2b50734f00d1d6dfe30079;hpb=8596e31595c9aba128078ba4a3950543ea291f98;p=dcpomatic.git diff --git a/src/lib/cinema_sound_processor.cc b/src/lib/cinema_sound_processor.cc index 485af3fd6..0b00ee2ee 100644 --- a/src/lib/cinema_sound_processor.cc +++ b/src/lib/cinema_sound_processor.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2012-2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -23,6 +24,7 @@ #include "cinema_sound_processor.h" #include "dolby_cp750.h" +#include "dcpomatic_assert.h" #include #include @@ -98,6 +100,6 @@ CinemaSoundProcessor::as_index (CinemaSoundProcessor const * s) CinemaSoundProcessor const * CinemaSoundProcessor::from_index (int i) { - assert (i <= int(_cinema_sound_processors.size ())); + DCPOMATIC_ASSERT (i <= int(_cinema_sound_processors.size ())); return _cinema_sound_processors[i]; }