Changeset 258

Show
Ignore:
Timestamp:
01/06/07 21:22:10 (2 years ago)
Author:
gbooker
Message:

A52codec can handle bsids from 9-11, so add support for it in the parser.

Files:

Legend:

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

    r256 r258  
    8181         
    8282        uint8_t bsid = buffer[offset + 5] >> 3; 
    83         if(bsid > 0x08
     83        if(bsid >= 0x12
    8484                return 0; 
    8585         
     
    9898        int sample_rate = ac3_freqs[fscod]; 
    9999         
    100         asbd->mSampleRate = sample_rate; 
     100        shift = 0 
     101        if(bsid > 8) 
     102                shift = bsid - 8; 
     103         
     104        asbd->mSampleRate = sample_rate >> shift; 
    101105        asbd->mChannelsPerFrame = nfchans_tbl[acmod] + lfe; 
    102106        if(lfe)