summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/export_graph_builder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index 2c0c44033d..5e8c052b63 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -514,7 +514,9 @@ ExportGraphBuilder::ChannelConfig::ChannelConfig (ExportGraphBuilder & parent, F
// Make the chunk size divisible by the channel count
int chan_count = new_config.channel_config->get_n_chans();
max_frames_out = 8192;
- max_frames_out -= max_frames_out % chan_count;
+ if (chan_count > 0) {
+ max_frames_out -= max_frames_out % chan_count;
+ }
chunker.reset (new Chunker<Sample> (max_frames_out));
interleaver->add_output(chunker);