Changeset 14

Show
Ignore:
Timestamp:
08/16/06 21:54:21 (2 years ago)
Author:
gbooker
Message:

Removed random printfs which are no longer needed
Be less strict about .ac3 files starting with a valid ac3 frame (just need one in the first 100 bytes now)
warnings--;

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/A52Codec.xcodeproj/project.pbxproj

    r12 r14  
    103103                        containerPortal = F5A548DE02879EB701000102 /* Project object */; 
    104104                        proxyType = 1; 
    105                         remoteGlobalIDString = F5DA8EE20A54C702004A41D0 /* Build All */
     105                        remoteGlobalIDString = F5DA8EE20A54C702004A41D0
    106106                        remoteInfo = "Build All"; 
    107107                }; 
  • trunk/AC3MovieImport/AC3MovieImport.c

    r11 r14  
    137137        OSErr err; 
    138138         
    139       printf("allocing\n"); 
     139//    printf("allocing\n"); 
    140140// Allocate memory for our globals, and inform the component manager that we've done so 
    141141        globals = (AC3MovieImportGlobals)NewPtrClear(sizeof(AC3MovieImportGlobalsRecord)); 
     
    155155#pragma unused(self) 
    156156         
    157       printf("closing\n"); 
     157//    printf("closing\n"); 
    158158// Make sure to dealocate our storage 
    159159        if (globals) 
     
    254254        OSErr err = noErr; 
    255255        DataHandler dataHandler = 0; 
    256         unsigned char header[7]; 
     256        unsigned char header[107]; 
    257257         
    258258        *valid = 0; 
     
    275275        int sample_rate; 
    276276        int bit_rate; 
    277         int frame_size = a52_syncinfo(header, &flags, &sample_rate, &bit_rate); 
    278         if (frame_size > 0) { 
    279                 *valid = 128; 
    280         }        
     277        int i; 
     278        for(i=0;i<100;i++) 
     279        { 
     280                int frame_size = a52_syncinfo(header+i, &flags, &sample_rate, &bit_rate); 
     281                if (frame_size > 0) { 
     282                        *valid = 128; 
     283                        break; 
     284                }                
     285        } 
    281286         
    282287bail: 
     
    338343        OSErr err = noErr; 
    339344        Track audioTrack = NULL; 
    340         Media audioMedia
     345        Media audioMedia = NULL
    341346        ComponentInstance dataHandler = 0; 
    342347        unsigned char header[7];