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"));
- }
+ _active_audio_channels = std::max(_active_audio_channels.get_value_or(0), asset->active_channels());
if (!_audio_frame_rate) {
_audio_frame_rate = asset->sampling_rate ();