I don't think the audio parameter here should ever be 0.
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Dec 2017 16:23:27 +0000 (16:23 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Dec 2017 16:23:27 +0000 (16:23 +0000)
src/lib/reel_writer.cc

index c560909a9f5c1aa2d189a8b3dccc23a3fcd3a313..4aa5ff3a7260fd4498ff5304c3ed0dd4a6f6c056 100644 (file)
@@ -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