Changeset 263
- Timestamp:
- 01/07/07 16:27:30 (2 years ago)
- Files:
-
- trunk/bitstream_info.c (modified) (2 diffs)
- trunk/ff_private.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bitstream_info.c
r259 r263 94 94 uint8_t lfe = (buffer[offset + 6] >> shift) & 0x01; 95 95 96 / /This is a valid frame!!!96 /* This is a valid frame!!! */ 97 97 uint8_t bitrate = ac3_bitratetab[frmsizecod >> 1]; 98 98 int sample_rate = ac3_freqs[fscod]; … … 102 102 shift = bsid - 8; 103 103 104 /* Setup the AudioStreamBasicDescription and AudioChannelLayout */ 105 memset(asbd, 0, sizeof(AudioStreamBasicDescription)); 104 106 asbd->mSampleRate = sample_rate >> shift; 107 asbd->mFormatID = kAudioFormatAC3; 108 asbd->mFramesPerPacket = 1; 105 109 asbd->mChannelsPerFrame = nfchans_tbl[acmod] + lfe; 110 111 memset(acl, 0, sizeof(AudioChannelLayout)); 106 112 if(lfe) 107 113 acl->mChannelLayoutTag = ac3_layout_lfe[acmod]; trunk/ff_private.c
r260 r263 250 250 /* We have to parse the format */ 251 251 int useDefault = 1; 252 if(asbd.mFormatID == 'ac-3' || asbd.mFormatID == 'ms \0')252 if(asbd.mFormatID == kAudioFormatAC3 || asbd.mFormatID == kAudioFormatAC3MS) 253 253 { 254 254 if(parse_ac3_bitstream(&asbd, &acl, firstFrame->data, firstFrame->size))
