Changeset 852

Show
Ignore:
Timestamp:
04/19/08 03:21:58 (3 months ago)
Author:
astrange
Message:

Matroska: Fix FLAC import on my samples. (closes #262)
Subtitles: Comment.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MatroskaCodecIDs.cpp

    r842 r852  
    143143         
    144144        if (dir == kToSampleDescription) { 
     145                // WAVFORMATEX is stored in the private data, and some codecs (WMA) need it to decode 
     146                KaxCodecPrivate & codecPrivate = GetChild<KaxCodecPrivate>(*tr_entry); 
     147                 
     148                QTSoundDescriptionSetProperty(sndDesc,  
     149                                              kQTPropertyClass_SoundDescription,  
     150                                              kQTSoundDescriptionPropertyID_MagicCookie,  
     151                                              codecPrivate.GetSize(), codecPrivate.GetBuffer()); 
     152                 
     153                //XXX: What exactly was the point of all this? 
     154#if 0 
    145155                Handle sndDescExt = NewHandle(0); 
    146156                unsigned char *privateBuf; 
     
    207217                DisposePtr((Ptr)packetSizes); 
    208218                DisposeHandle(sndDescExt); 
     219#endif 
    209220        } 
    210221        return noErr; 
  • trunk/Subtitles/SubATSUIRenderer.m

    r851 r852  
    287287} 
    288288 
     289// XXX: Assumes ATSUFontID = ATSFontRef. This is true. 
     290// May appear as a memory leak, but it isn't, not really. 
    289291static ATSUFontID GetFontIDForSSAName(NSString *name) 
    290292{