projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c7598
)
Avoid potential division by zero.
author
David Robillard
<d@drobilla.net>
Tue, 18 Nov 2014 07:26:37 +0000
(
02:26
-0500)
committer
David Robillard
<d@drobilla.net>
Tue, 18 Nov 2014 07:53:28 +0000
(
02:53
-0500)
libs/ardour/export_graph_builder.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/export_graph_builder.cc
b/libs/ardour/export_graph_builder.cc
index 2c0c44033d1bab3cf50dc542fb18836e3ae61860..5e8c052b637dbaf804dae5e876de058c4d263a9d 100644
(file)
--- 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);