From: Carl Hetherington Date: Sun, 19 Mar 2023 13:52:24 +0000 (+0100) Subject: Add assert. X-Git-Tag: v2.16.48~1 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=48eb118a26bbd98a7ac2d555c4add923b0f2311d Add assert. --- 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 Resampler::run (shared_ptr in) { + DCPOMATIC_ASSERT(in->channels() == _channels); + int in_frames = in->frames (); int in_offset = 0; int out_offset = 0;