Changeset 882

Show
Ignore:
Timestamp:
05/18/08 14:42:15 (6 months ago)
Author:
astrange
Message:

Only apply r878 to VP3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/FFusionCodec.c

    r880 r882  
    124124        int                             lastAllocatedBuffer;            // the index of the buffer which was last allocated  
    125125                                                                                                // by the codec (and is the latest in decode order)      
     126        int                             shouldUseReturnedFrame; 
    126127        struct begin_glob       begin; 
    127128        FFusionData             data; 
     
    323324                if (getenv("PerianDebugLogging")) glob->fileLog = fopen("/tmp/perian.log", "a"); 
    324325                else glob->fileLog = NULL; 
     326                glob->shouldUseReturnedFrame = 0; 
    325327                 
    326328//        c = FindNextComponent(c, &cd); 
     
    635637                        case 'VP30': 
    636638                        case 'VP31': 
     639                                glob->shouldUseReturnedFrame = TRUE; 
    637640                                codecID = CODEC_ID_VP3; 
    638641                                break; 
     
    12751278        if(!picture || picture->data[0] == 0) 
    12761279        { 
    1277                 if(myDrp->buffer->returnedFrame.data[0]) 
     1280                if(glob->shouldUseReturnedFrame && myDrp->buffer->returnedFrame.data[0]) 
    12781281                        //Some decoders (vp3) keep their internal buffers in an unusable state 
    12791282                        picture = &myDrp->buffer->returnedFrame;