Opened 11 years ago

Closed 11 years ago

#2679 closed defect (fixed)

JPEG2000 driver resets any format option to jp2

Reported by: emiller Owned by: warmerdam
Priority: normal Milestone: 1.5.4
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: jpeg2000


line 881 in frmts/jpeg2000dataset.cpp:

    if ( !pszFormatName ||
         !EQUALN( pszFormatName, "jp2", 3 ) ||
         !EQUALN( pszFormatName, "jpc", 3 ) )
        pszFormatName = "jp2";

should be:

    if ( !pszFormatName ||
        (!EQUALN( pszFormatName, "jp2", 3 ) &&
         !EQUALN( pszFormatName, "jpc", 3 ) ) )
        pszFormatName = "jp2";

Change History (1)

comment:1 Changed 11 years ago by warmerdam

Component: defaultGDAL_Raster
Keywords: jpeg2000 added
Milestone: 1.5.4
Resolution: fixed
Status: newclosed


I have applied the suggested patch but I don't have JasPer so I haven't tested it. If possibly, it would be appreciated if you could try the latest version from SVN.

Patched in trunk (r15734) and 1.5 branch (r15735).

Note: See TracTickets for help on using tickets.