+2013-10-17 Carl Hetherington <cth@carlh.net>
+
+ * Forward-port fix from master; use 1000000 rather
+ than 1e6 for J2K bandwidth arithmetic to ensure
+ that it's done with integers.
+
2013-10-16 Carl Hetherington <cth@carlh.net>
* Version 1.17 released.
_default_dcp_content_type->Bind (wxEVT_COMMAND_CHOICE_SELECTED, boost::bind (&ConfigDialog::default_dcp_content_type_changed, this));
_default_j2k_bandwidth->SetRange (50, 250);
- _default_j2k_bandwidth->SetValue (config->default_j2k_bandwidth() / 1e6);
+ _default_j2k_bandwidth->SetValue (config->default_j2k_bandwidth() / 1000000);
_default_j2k_bandwidth->Bind (wxEVT_COMMAND_SPINCTRL_UPDATED, boost::bind (&ConfigDialog::default_j2k_bandwidth_changed, this));
}
void
ConfigDialog::default_j2k_bandwidth_changed ()
{
- Config::instance()->set_default_j2k_bandwidth (_default_j2k_bandwidth->GetValue() * 1e6);
+ Config::instance()->set_default_j2k_bandwidth (_default_j2k_bandwidth->GetValue() * 1000000);
}
static std::string
return;
}
- _film->set_j2k_bandwidth (_j2k_bandwidth->GetValue() * 1e6);
+ _film->set_j2k_bandwidth (_j2k_bandwidth->GetValue() * 1000000);
}
void
setup_dcp_name ();
break;
case Film::J2K_BANDWIDTH:
- checked_set (_j2k_bandwidth, double (_film->j2k_bandwidth()) / 1e6);
+ checked_set (_j2k_bandwidth, double (_film->j2k_bandwidth()) / 1000000);
break;
case Film::USE_DCI_NAME:
checked_set (_use_dci_name, _film->use_dci_name ());