Changeset 787

Show
Ignore:
Timestamp:
01/24/08 11:41:29 (6 months ago)
Author:
astrange
Message:

Do data setup in component open instead of preflight; bail out of BeginBand? and complain if QT tries to call us without preflighting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-1.1/FFusionCodec.c

    r782 r787  
    299299            Codecprintf(glob->fileLog, "Error opening the base image decompressor! Exiting.\n"); 
    300300        } 
     301                 
     302                // we allocate some space for copying the frame data since we need some padding at the end 
     303                // for ffmpeg's optimized bitstream readers. Size doesn't really matter, it'll grow if need be 
     304                FFusionDataSetup(&(glob->data), 256, 64*1024); 
    301305        FFusionRunUpdateCheck(); 
    302306    } 
     
    708712        } 
    709713                 
    710                 // we allocate some space for copying the frame data since we need some padding at the end 
    711                 // for ffmpeg's optimized bitstream readers. Size doesn't really matter, it'll grow if need be 
    712                 FFusionDataSetup(&(glob->data), 256, 64*1024); 
    713714    } 
    714715     
     
    846847        myDrp->frameData = NULL; 
    847848        myDrp->buffer = NULL; 
     849         
     850        if (!glob->avContext) { 
     851                fprintf(stderr, "Perian Codec: QT tried to call BeginBand without preflighting!\n"); 
     852                return internalComponentErr; 
     853        } 
    848854         
    849855        if(myDrp->decoded)