diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-29 16:23:27 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-29 16:23:27 +0000 |
| commit | 3b2610481c4553ca26a778342adaf5a16aad8549 (patch) | |
| tree | c80520fca9a25eaa6ca01d0dfdf7a6a7bebc11d6 /src/lib | |
| parent | 60d528017a3ac1afdc30a3a000b28dda96a2175e (diff) | |
I don't think the audio parameter here should ever be 0.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/reel_writer.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index c560909a9..4aa5ff3a7 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -530,9 +530,8 @@ ReelWriter::write (shared_ptr<const AudioBuffers> audio) return; } - if (audio) { - _sound_asset_writer->write (audio->data(), audio->frames()); - } + DCPOMATIC_ASSERT (audio); + _sound_asset_writer->write (audio->data(), audio->frames()); } void |
