In 2 places in j2k.c, the logical test that checks the return value of
opj_stream_read_seek() is inverted, leading to a false error "Problem with seek
function". I couldn't reproduce the error with j2k_to_image, but the error was
triggered by the GDAL OpenJPEG driver updated to latest openjpeg HEAD on the
Bretagne2.j2k image.
Attached a patch that fixes the test, as well as doc for opj_stream_read_seek().
Original issue reported on code.google.com by even.rou...@gmail.com on 14 Aug 2012 at 9:18
Original issue reported on code.google.com by
even.rou...@gmail.com
on 14 Aug 2012 at 9:18Attachments: