From: Carl Hetherington Date: Sat, 2 Jul 2016 00:44:15 +0000 (+0100) Subject: Fix crash when analysing audio of large-channel-count files. X-Git-Tag: v2.8.15~1 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=b5018e3a5d798c270a55af6f7e479be7823d3874;p=dcpomatic.git Fix crash when analysing audio of large-channel-count files. --- 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, shared_ptrBind (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);