Updated to v3 version of stream API introduced in revision r2296 of openjpeg.