projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments.
[libdcp.git]
/
src
/
sound_mxf_writer.cc
diff --git
a/src/sound_mxf_writer.cc
b/src/sound_mxf_writer.cc
index 51ba7e404a918b6f1dc4ac2d968d457b82ed87db..52547b16b973f589424cea6d54bbda0b88ec9fb1 100644
(file)
--- 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 "sound_mxf_writer.h"
#include "sound_mxf.h"
#include "exceptions.h"
+#include "dcp_assert.h"
#include "compose.hpp"
#include "AS_DCP.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)
{
void
SoundMXFWriter::write (float const * const * data, int frames)
{
-
assert
(!_finalized);
+
DCP_ASSERT
(!_finalized);
for (int i = 0; i < frames; ++i) {
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();
}
_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())) {
/* Finish the MXF frame if required */
if (_frame_buffer_offset == int (_state->frame_buffer.Capacity())) {