Changeset 781
- Timestamp:
- 01/20/08 17:38:59 (9 months ago)
- Files:
-
- branches/perian-1.1/FFusionCodec.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/perian-1.1/FFusionCodec.c
r756 r781 429 429 cap->subCodecSupportsOutOfOrderDisplayTimes = true; 430 430 cap->baseCodecShouldCallDecodeBandForAllFrames = true; 431 cap->subCodecSupportsScheduledBackwardsPlaybackWithDifferenceFrames = true;431 // cap->subCodecSupportsScheduledBackwardsPlaybackWithDifferenceFrames = true; 432 432 433 433 // XXX enabling this seems to cause rare visible artifacts in h.264? … … 459 459 long count = 0; 460 460 Handle imgDescExt; 461 OSErr err = noErr; 461 462 462 463 // We first open libavcodec library and the codec corresponding … … 687 688 // specifically PAFF + spatial prediction 688 689 if (codecID == CODEC_ID_H264 && ffusionIsParsedVideoInterlaced(glob->begin.parser)) 689 goto error;690 err = featureUnsupported; 690 691 691 692 // some hooks into ffmpeg's buffer allocation to get frames in … … 704 705 Codecprintf(glob->fileLog, "Error opening avcodec!\n"); 705 706 706 goto error;707 err = paramErr; 707 708 } 708 709 … … 747 748 index = 0; 748 749 750 if (!err) { 749 751 switch (glob->avContext->pix_fmt) 750 752 { … … 767 769 break; 768 770 } 771 } 769 772 770 773 pos[index++] = 0; … … 782 785 capabilities->flags |= codecCanAsync | codecCanAsyncWhen; 783 786 784 785 return noErr; 786 787 error: 788 HLock(glob->pixelTypes); 789 pos = *((OSType **)glob->pixelTypes); 790 *pos = 0; 791 p->wantedDestinationPixelTypes = (OSType **)glob->pixelTypes; 792 HUnlock(glob->pixelTypes); 793 794 return -2; 787 return err; 795 788 } 796 789
