y4m: read frame info earlier