Changeset 414

Show
Ignore:
Timestamp:
04/12/07 19:29:25 (1 year ago)
Author:
dconrad
Message:

Apparently returning 0 for frame size with a format that has a variable number of frames per packet is still broken on Intel. XiphQT returns 1 on Intel, so we should as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/FFissionCodec/FFissionDecoder.cpp

    r411 r414  
    418418} 
    419419 
     420// comment from XiphQT (variable frames per packet means FrameSize should be reported 0,  
     421// but apparently needs 1 on Intel?): 
     422/* The following line has been changed according to Apple engineers' suggestion 
     423   I received via Steve Nicolai (in response to *my* bugreport, I think...). 
     424   (Why don't they just implement the VBR-VFPP properly? *sigh*) */ 
     425#ifdef TARGET_CPU_X86 
     426#define SHOULD_BE_ZERO 1 
     427#else 
     428#define SHOULD_BE_ZERO 0 
     429#endif 
    420430 
    421431void FFissionVBRDecoder::GetProperty(AudioCodecPropertyID inPropertyID, UInt32& ioPropertyDataSize, void* outPropertyData) 
     
    431441        switch (inPropertyID) { 
    432442                case kAudioCodecPropertyPacketFrameSize: 
    433                         *reinterpret_cast<UInt32*>(outPropertyData) = 0
     443                        *reinterpret_cast<UInt32*>(outPropertyData) = SHOULD_BE_ZERO
    434444                        break; 
    435445