diff options
Diffstat (limited to 'filters/f_swresample.c')
-rw-r--r-- | filters/f_swresample.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/filters/f_swresample.c b/filters/f_swresample.c index 0197ca9662..4f26d82a59 100644 --- a/filters/f_swresample.c +++ b/filters/f_swresample.c @@ -71,14 +71,13 @@ struct priv { #define OPT_BASE_STRUCT struct mp_resample_opts const struct m_sub_options resample_conf = { .opts = (const m_option_t[]) { - OPT_INTRANGE("audio-resample-filter-size", filter_size, 0, 0, 32), - OPT_INTRANGE("audio-resample-phase-shift", phase_shift, 0, 0, 30), - OPT_FLAG("audio-resample-linear", linear, 0), - OPT_DOUBLE("audio-resample-cutoff", cutoff, 0, - .min = 0, .max = 1), - OPT_FLAG("audio-normalize-downmix", normalize, 0), - OPT_DOUBLE("audio-resample-max-output-size", max_output_frame_size, 0), - OPT_KEYVALUELIST("audio-swresample-o", avopts, 0), + {"audio-resample-filter-size", OPT_INT(filter_size), M_RANGE(0, 32)}, + {"audio-resample-phase-shift", OPT_INT(phase_shift), M_RANGE(0, 30)}, + {"audio-resample-linear", OPT_FLAG(linear)}, + {"audio-resample-cutoff", OPT_DOUBLE(cutoff), M_RANGE(0, 1)}, + {"audio-normalize-downmix", OPT_FLAG(normalize)}, + {"audio-resample-max-output-size", OPT_DOUBLE(max_output_frame_size)}, + {"audio-swresample-o", OPT_KEYVALUELIST(avopts)}, {0} }, .size = sizeof(struct mp_resample_opts), |