pi.c: avoid out of bounds access with POC (refs https://github.com/uclouvain/openjpeg...