pi.c: avoid integer overflow, resulting in later invalid access to memory in opj_t2_d...