Changeset 207

Show
Ignore:
Timestamp:
12/20/06 11:18:31 (2 years ago)
Author:
dconrad
Message:

libavcodec enables Altivec acceleration when appropiate, so remove our forcing it which might have been necessary for ffmpeg 0.4.6 but isn't the best choice anymore with On2's codecs

Files:

Legend:

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

    r201 r207  
    519519        glob->avContext->codec_tag = (myptr[3] << 24) + (myptr[2] << 16) + (myptr[1] << 8) + myptr[0]; 
    520520         
    521         // Let's look for a CPU with AltiVec-like SMID unit 
    522          
    523         Gestalt(gestaltPowerPCProcessorFeatures, &bitfield); 
    524         altivec = (bitfield & (1 << gestaltPowerPCHasVectorInstructions)) != 0; 
    525          
    526                 // VP6 needs VP3 IDCT; Altivec IDCT doesn't work for now 
    527         if (altivec && glob->componentType != 'VP62' && glob->componentType != 'VP6F') 
    528         { 
    529             Codecprintf(glob->fileLog, "Altivec Acceleration enabled!\n"); 
    530                          
    531             glob->avContext->idct_algo = FF_IDCT_ALTIVEC; 
    532         } 
    533                  
    534521        // Finally we open the avcodec  
    535522