summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-02 01:44:15 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-02 01:44:15 +0100
commitb5018e3a5d798c270a55af6f7e479be7823d3874 (patch)
treeaebd455170bbde043982c4325daf5ad334478b15
parentfc39cebbc4d20238a4b751724ea32105bdd61286 (diff)
Fix crash when analysing audio of large-channel-count files.
-rw-r--r--src/wx/audio_dialog.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc
index c753de535..19b5fe759 100644
--- a/src/wx/audio_dialog.cc
+++ b/src/wx/audio_dialog.cc
@@ -89,6 +89,10 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, shared_ptr<Co
_channel_checkbox[i]->Bind (wxEVT_COMMAND_CHECKBOX_CLICKED, boost::bind (&AudioDialog::channel_clicked, this, _1));
}
+ for (int i = _channels; i < MAX_DCP_AUDIO_CHANNELS; ++i) {
+ _channel_checkbox[i] = 0;
+ }
+
{
wxStaticText* m = new wxStaticText (this, wxID_ANY, _("Type"));
m->SetFont (subheading_font);