X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsound_mxf_writer.cc;h=52547b16b973f589424cea6d54bbda0b88ec9fb1;hb=491ac453512ac1982f62fc0d2a310586427601d7;hp=51ba7e404a918b6f1dc4ac2d968d457b82ed87db;hpb=bfb33feb40c5b014e9eae3958b1ecb8161f1d090;p=libdcp.git diff --git a/src/sound_mxf_writer.cc b/src/sound_mxf_writer.cc index 51ba7e40..52547b16 100644 --- a/src/sound_mxf_writer.cc +++ b/src/sound_mxf_writer.cc @@ -20,6 +20,7 @@ #include "sound_mxf_writer.h" #include "sound_mxf.h" #include "exceptions.h" +#include "dcp_assert.h" #include "compose.hpp" #include "AS_DCP.h" @@ -68,7 +69,7 @@ SoundMXFWriter::SoundMXFWriter (SoundMXF* m, boost::filesystem::path file, Stand void SoundMXFWriter::write (float const * const * data, int frames) { - assert (!_finalized); + DCP_ASSERT (!_finalized); for (int i = 0; i < frames; ++i) { @@ -83,7 +84,7 @@ SoundMXFWriter::write (float const * const * data, int frames) } _frame_buffer_offset += 3 * _sound_mxf->channels(); - assert (_frame_buffer_offset <= int (_state->frame_buffer.Capacity())); + DCP_ASSERT (_frame_buffer_offset <= int (_state->frame_buffer.Capacity())); /* Finish the MXF frame if required */ if (_frame_buffer_offset == int (_state->frame_buffer.Capacity())) {