summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-19 14:52:24 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-19 14:52:24 +0100
commit48eb118a26bbd98a7ac2d555c4add923b0f2311d (patch)
tree36973695ff6d835f1b4a81ea44d4cadefadb6d6a
parent60a18867b26c56bff3c71aa752dbaea6b03aaebf (diff)
Add assert.
-rw-r--r--src/lib/resampler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 4447ccf0d..2c6594a6d 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -81,6 +81,8 @@ Resampler::set_fast ()
shared_ptr<const AudioBuffers>
Resampler::run (shared_ptr<const AudioBuffers> in)
{
+ DCPOMATIC_ASSERT(in->channels() == _channels);
+
int in_frames = in->frames ();
int in_offset = 0;
int out_offset = 0;