X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=compress.c;fp=compress.c;h=8e2f07c9c4f3342e2984c5b4b8b2a0b047bb038c;hp=dd77de8153d917f46f75df6ced1b580b55dd1386;hb=cec9a9348c155e285eb94f024b263d52e1735301;hpb=cb1265c87fdb0e817923bf09c47162a7f894aafc diff --git a/compress.c b/compress.c index dd77de81..8e2f07c9 100644 --- a/compress.c +++ b/compress.c @@ -106,8 +106,11 @@ static void open_compress(struct filter_node *fn) fn->buf = para_malloc(fn->bufsize); pcd->current_gain = 1 << pcd->conf->inertia_arg; pcd->max_gain = 1 << (pcd->conf->inertia_arg + pcd->conf->aggressiveness_arg); - if (stat_item_values[SI_AMPLIFICATION]) - sscanf(stat_item_values[SI_AMPLIFICATION], "%u", &pcd->amp); + if (stat_item_values[SI_AMPLIFICATION]) { + int i = SI_AMPLIFICATION; + char *s = stat_item_values[i] + strlen(status_item_list[i]) + 1; + sscanf(s, "%u", &pcd->amp); + } PARA_NOTICE_LOG("amplification: %u (scaling factor: %1.2f)\n", pcd->amp, pcd->amp / 64.0 + 1.0); }