c
if (sp->v_sampling == 0) {
    TIFFErrorExt(tif->tif_clientdata, module,
                 "Invalid vertical sampling value");
    return (0);
}
if ((td->td_tilelength % (sp->v_sampling * DCTSIZE)) != 0) {
    // ... rest of the code
}
