Changeset 3339


Ignore:
Timestamp:
11/05/07 09:02:37 (12 years ago)
Author:
melissa
Message:

Don't try to decompress more bytes than are needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/PictReader.java

    r3284 r3339  
    492492 
    493493        PackbitsCodec c = new PackbitsCodec(); 
    494         uBuf = c.decompress(buf, new Integer(core.sizeX[0] * core.sizeY[0])); 
     494        uBuf = c.decompress(buf, new Integer(core.sizeX[0] * 4)); 
    495495 
    496496        // invert the pixels -- PICT images map zero to white 
     
    685685        else { 
    686686          PackbitsCodec c = new PackbitsCodec(); 
    687           uBuf = c.decompress(buf, new Integer(core.sizeX[0] * core.sizeY[0])); 
     687          uBuf = c.decompress(buf, new Integer(core.sizeX[0] * 4)); 
    688688        } 
    689689 
Note: See TracChangeset for help on using the changeset viewer.