changeset 15281:dcf97e9eb7e8

fixed variability range
author nicodvb
date Wed, 27 Apr 2005 19:26:09 +0000
parents 5cbbcb5f9cb7
children cac0ab3e7e05
files libmpcodecs/ae_toolame.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ae_toolame.c	Wed Apr 27 19:24:41 2005 +0000
+++ b/libmpcodecs/ae_toolame.c	Wed Apr 27 19:26:09 2005 +0000
@@ -28,7 +28,7 @@
 	{"br", &param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
 	{"mode", &param_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
 	{"psy", &param_psy, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
-	{"vbr", &param_vbr, CONF_TYPE_FLOAT, CONF_RANGE, 0, 50, NULL},
+	{"vbr", &param_vbr, CONF_TYPE_FLOAT, CONF_RANGE, -50, 50, NULL},
 	{"maxvbr", &param_maxvbr, CONF_TYPE_INT, 0, 0, 0, NULL},
 	{"errprot", &param_errprot, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
 	{"debug", &param_debug, CONF_TYPE_INT, CONF_RANGE, 0, 100000000, NULL},
@@ -180,7 +180,7 @@
 		if(toolame_setErrorProtection(ctx->toolame_ctx, TRUE) != 0)
 			return 0;
 	
-	if(param_vbr > 0)
+	if(param_vbr != 0)
 	{
 		if(toolame_setVBR(ctx->toolame_ctx, TRUE) != 0)
 			return 0;