From 48eb118a26bbd98a7ac2d555c4add923b0f2311d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Mar 2023 14:52:24 +0100 Subject: [PATCH] Add assert. --- src/lib/resampler.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2