Changeset 5730 for branches/4.1


Ignore:
Timestamp:
12/07/09 23:34:09 (10 years ago)
Author:
melissa
Message:

Ignore image chunks that have a length of 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/in/AVIReader.java

    r5517 r5730  
    464464                  type.substring(2).equals("dc")) 
    465465                { 
    466                   offsets.add(new Long(in.getFilePointer())); 
    467                   lengths.add(new Long(size)); 
    468                   in.skipBytes(size); 
     466                  if (size > 0) { 
     467                    offsets.add(new Long(in.getFilePointer())); 
     468                    lengths.add(new Long(size)); 
     469                    in.skipBytes(size); 
     470                  } 
    469471                } 
    470472 
Note: See TracChangeset for help on using the changeset viewer.