j2kdec: update to new buffer API