diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-19 14:52:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-19 14:52:24 +0100 |
| commit | 48eb118a26bbd98a7ac2d555c4add923b0f2311d (patch) | |
| tree | 36973695ff6d835f1b4a81ea44d4cadefadb6d6a /src/lib/resampler.cc | |
| parent | 60a18867b26c56bff3c71aa752dbaea6b03aaebf (diff) | |
Add assert.
Diffstat (limited to 'src/lib/resampler.cc')
| -rw-r--r-- | src/lib/resampler.cc | 2 |
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; |
