Commit 9c12a37c authored by Karl Heyes's avatar Karl Heyes
Browse files

use the stated bitrate in managed mode instead of assuming the default

quality 3.

svn path=/trunk/ices/; revision=5043
parent d5e28258
/* cfgparse.c
* - cfgparse file reading code, plus default settings.
*
* $Id: cfgparse.c,v 1.4 2003/07/02 20:26:51 karl Exp $
* $Id: cfgparse.c,v 1.5 2003/07/02 23:30:46 karl Exp $
*
* Copyright (c) 2001 Michael Smith <msmith@labyrinth.net.au>
*
......@@ -168,7 +168,10 @@ static void _parse_encode(instance_t *instance,xmlDocPtr doc, xmlNodePtr node)
if (xmlIsBlankNode(node)) continue;
if (strcmp(node->name, "nominal-bitrate") == 0)
{
SET_INT(instance->nom_br);
instance->managed = 1;
}
else if (strcmp(node->name, "minimum-bitrate") == 0)
SET_INT(instance->min_br);
else if (strcmp(node->name, "maximum-bitrate") == 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment