Use MIN/MAX

This commit is contained in:
twinaphex 2016-03-02 00:11:45 +01:00
parent 130f0749d4
commit fa1662412b
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ static void *echo_init(const struct dspfilter_info *info,
config->get_float_array(userdata, "feedback", &feedback, &num_feedback, default_feedback, 1);
config->get_float(userdata, "amp", &echo->amp, 0.2f);
channels = num_feedback = num_delay = min(num_delay, num_feedback);
channels = num_feedback = num_delay = MIN(num_delay, num_feedback);
echo->channels = (struct echo_channel*)calloc(channels, sizeof(*echo->channels));
if (!echo->channels)

View File

@ -276,7 +276,7 @@ static void *eq_init(const struct dspfilter_info *info,
filter_path = NULL;
}
num_gain = num_freq = min(num_gain, num_freq);
num_gain = num_freq = MIN(num_gain, num_freq);
gains = (struct eq_gain*)calloc(num_gain, sizeof(*gains));
if (!gains)