noobdoesre / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Inconsistant test for return value of opj_stream_read_seek() in j2k.c #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
patch integrated with rev 1852.
Thanks

Original comment by savmick...@gmail.com on 16 Aug 2012 at 9:14