Opened 16 years ago

Last modified 13 years ago

#2251 closed defect

Jasper driver fails with small jp2 image — at Version 3

Reported by: ssakharov Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: jpeg2000 jasper
Cc: dron

Description (last modified by warmerdam)

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.

Change History (4)

comment:1 by ssakharov, 16 years ago

Version: unspecifiedsvn-trunk

by ssakharov, 16 years ago

Attachment: Greyscale2.jp2 added

comment:2 by warmerdam, 16 years ago

Cc: dron added
Keywords: jpeg2000 jasper added

comment:3 by warmerdam, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.