Fixed a bug that the process goes hung when 0 is specified in level of compress(src, dst, pass, level).