Several bugs fixed when dealing with pgx-files with more than 8 bpp and the fixed_quality feature.

This commit is contained in:
Antonin Descampe
2005-07-18 15:21:56 +00:00
parent 32ba9920db
commit de75303c38
3 changed files with 21 additions and 29 deletions

View File

@@ -659,13 +659,13 @@ int main(int argc, char **argv)
if ((cp.disto_alloc || cp.fixed_alloc || cp.fixed_quality)
&& (!(cp.disto_alloc ^ cp.fixed_alloc ^ cp.fixed_quality))) {
fprintf(stderr,
"Error: options -r -q and -f can not be used together !!\n");
"Error: options -r -q and -f cannot be used together !!\n");
return 1;
} // mod fixed_quality
/* if no rate entered, lossless by default */
if (tcp_init->numlayers == 0) {
tcp_init->rates[tcp_init->numlayers] = 0; //MOD antonin : losslessbug
tcp_init->rates[0] = 0; //MOD antonin : losslessbug
tcp_init->numlayers++;
cp.disto_alloc = 1;
}