Changeset 2484


Ignore:
Timestamp:
03/20/07 08:17:52 (13 years ago)
Author:
melissa
Message:

Explicitly throw an exception if the QuickTime file has a compressed header.

File:
1 edited

Legend:

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

    r2478 r2484  
    723723 
    724724  /** Parse all of the atoms in the file. */ 
    725   public void parse(int depth, long offset, long length) throws IOException { 
     725  public void parse(int depth, long offset, long length)  
     726    throws FormatException, IOException  
     727  { 
    726728    while (offset < length) { 
    727729      in.seek(offset); 
     
    791793          width = in.readInt(); 
    792794          height = in.readInt(); 
     795        } 
     796        else if (atomType.equals("cmov")) { 
     797          throw new FormatException("Compressed header not supported."); 
    793798        } 
    794799        else if (atomType.equals("stco")) { 
Note: See TracChangeset for help on using the changeset viewer.