diff --git a/libmpcodecs/ae_toolame.c b/libmpcodecs/ae_toolame.c index 5edd8f12a0..e2ca1923f2 100644 --- a/libmpcodecs/ae_toolame.c +++ b/libmpcodecs/ae_toolame.c @@ -21,13 +21,13 @@ static int param_errprot = 0, param_debug = 0; -float param_vbr = 0; +static float param_vbr = 0; static char *param_mode = "stereo"; m_option_t toolameopts_conf[] = { {"br", ¶m_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL}, {"mode", ¶m_mode, CONF_TYPE_STRING, 0, 0, 0, NULL}, - {"psy", ¶m_psy, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, + {"psy", ¶m_psy, CONF_TYPE_INT, CONF_RANGE, -1, 4, NULL}, {"vbr", ¶m_vbr, CONF_TYPE_FLOAT, CONF_RANGE, -50, 50, NULL}, {"maxvbr", ¶m_maxvbr, CONF_TYPE_INT, 0, 0, 0, NULL}, {"errprot", ¶m_errprot, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL}, diff --git a/libmpcodecs/ae_twolame.c b/libmpcodecs/ae_twolame.c index b6f06c774a..10c89b59ce 100644 --- a/libmpcodecs/ae_twolame.c +++ b/libmpcodecs/ae_twolame.c @@ -27,7 +27,7 @@ static char *param_mode = "stereo"; m_option_t twolameopts_conf[] = { {"br", ¶m_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL}, {"mode", ¶m_mode, CONF_TYPE_STRING, 0, 0, 0, NULL}, - {"psy", ¶m_psy, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, + {"psy", ¶m_psy, CONF_TYPE_INT, CONF_RANGE, -1, 4, NULL}, {"vbr", ¶m_vbr, CONF_TYPE_FLOAT, CONF_RANGE, -50, 50, NULL}, {"maxvbr", ¶m_maxvbr, CONF_TYPE_INT, 0, 0, 0, NULL}, {"errprot", ¶m_errprot, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},