c
if (sp->v_sampling * DCTSIZE != 0) {
    if ((td->td_tilelength % (sp->v_sampling * DCTSIZE)) != 0) {
        TIFFErrorExt(tif->tif_clientdata, module,
                     "JPEG tile height must be multiple of %d",
                     sp->v_sampling * DCTSIZE);
        return (0);
    }
} else {
    TIFFErrorExt(tif->tif_clientdata, module,
                 "Invalid JPEG sampling factor");
    return (0);
}
