Fix off-by-one error on video output.