swscale: fix underflows in firstline calculations for extreme resizes.