summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dcp_examiner.cc')
-rw-r--r--src/lib/dcp_examiner.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index 50b19e2fd..e369b46ff 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -175,11 +175,17 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
auto asset = reel->main_sound()->asset();
if (!_audio_channels) {
- _audio_channels = asset->active_channels();
- } else if (_audio_channels.get() != asset->active_channels()) {
+ _audio_channels = asset->channels();
+ } else if (_audio_channels.get() != asset->channels()) {
throw DCPError (_("Mismatched audio channel counts in DCP"));
}
+ if (!_active_audio_channels) {
+ _active_audio_channels = asset->active_channels();
+ } else if (_active_audio_channels.get() != asset->active_channels()) {
+ throw DCPError(_("Mismatched active audio channel counts in DCP"));
+ }
+
if (!_audio_frame_rate) {
_audio_frame_rate = asset->sampling_rate ();
} else if (_audio_frame_rate.get() != asset->sampling_rate ()) {