Changeset 951

Show
Ignore:
Timestamp:
10/01/08 23:16:58 (2 months ago)
Author:
gbooker
Message:

Stops a crasher when switching packed methods back to the whole GOP in a single frame

Files:

Legend:

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

    r923 r951  
    10401040                                /* Badly framed.  We hit a B frame after it was supposed to be displayed, switch to delaying by a frame */ 
    10411041                                glob->packedType = PACKED_DELAY_BY_ONE_FRAME; 
     1042                        else if(glob->packedType == PACKED_DELAY_BY_ONE_FRAME && parsedBufSize < bufferSize - 16) 
     1043                                /* Seems to be switching back to packed in one frame; switch back*/ 
     1044                                glob->packedType = PACKED_ALL_IN_FIRST_FRAME; 
    10421045                         
    10431046                        if(FFusionCreateDataBuffer(&(glob->data), (uint8_t *)drp->codecData, parsedBufSize))