Apply patch from Jean Favre: UCF file format store the min/max values which can then be directly read