tiffdec: check rps, fix infinite loop.