Ticket #2251 (closed defect: invalid)
Jasper driver fails with small jp2 image
|Reported by:||ssakharov||Owned by:||dron|
Description (last modified by warmerdam) (diff)
Attempting to use the example jp2 images from the ecw sdk, ie testdata/Grayscale2.jp2 causes gdal to throw an error:
$ ./gdal_translate.exe -of GTiff testdata/Greyscale2.jp2 gray.tiff Input file size is 1500, 1500 0jpc_dec_decodepkts failed error: cannot decode code stream error: cannot get box ERROR 1: IReadBlock failed at X offset 0, Y offset 0 ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
This can be seen via gddal_translate and also band.readraster via code. The jasper library is the uuid modified version.