fixed a bug in j2k.c (j2k_write_sod) that allowed to get negative rates, thanks zhong...