Changeset 882
- Timestamp:
- 05/18/08 14:42:15 (6 months ago)
- Files:
-
- trunk/FFusionCodec.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/FFusionCodec.c
r880 r882 124 124 int lastAllocatedBuffer; // the index of the buffer which was last allocated 125 125 // by the codec (and is the latest in decode order) 126 int shouldUseReturnedFrame; 126 127 struct begin_glob begin; 127 128 FFusionData data; … … 323 324 if (getenv("PerianDebugLogging")) glob->fileLog = fopen("/tmp/perian.log", "a"); 324 325 else glob->fileLog = NULL; 326 glob->shouldUseReturnedFrame = 0; 325 327 326 328 // c = FindNextComponent(c, &cd); … … 635 637 case 'VP30': 636 638 case 'VP31': 639 glob->shouldUseReturnedFrame = TRUE; 637 640 codecID = CODEC_ID_VP3; 638 641 break; … … 1275 1278 if(!picture || picture->data[0] == 0) 1276 1279 { 1277 if( myDrp->buffer->returnedFrame.data[0])1280 if(glob->shouldUseReturnedFrame && myDrp->buffer->returnedFrame.data[0]) 1278 1281 //Some decoders (vp3) keep their internal buffers in an unusable state 1279 1282 picture = &myDrp->buffer->returnedFrame;
