Changeset 812
- Timestamp:
- 02/18/08 19:13:31 (8 months ago)
- Files:
-
- trunk/MatroskaCodecIDs.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/MatroskaCodecIDs.cpp
r811 r812 371 371 static void RecreateAACVOS(KaxTrackEntry *tr_entry, uint8_t *vosBuf, size_t *vosLen) 372 372 { 373 unsigned char profile = 0, freq_index = 15;373 unsigned char profile = 2, freq_index = 15; 374 374 KaxCodecID *tr_codec = FindChild<KaxCodecID>(*tr_entry); 375 375 KaxTrackAudio & audioTrack = GetChild<KaxTrackAudio>(*tr_entry); … … 393 393 *vosBuf++ = (freq_index << 7) | (channels << 3); 394 394 *vosLen = 2; 395 } else { 396 freq = EndianU32_NtoB(freq); 397 395 } else { 398 396 *vosBuf++ = (profile << 3) | (freq_index >> 1); 399 397 *vosBuf++ = (freq_index << 7) | (freq >> (24 - 7)); 400 *vosBuf++ = (freq >> (24 - 7 - 8)) & 0xff;401 *vosBuf++ = (freq >> (24 - 7 - 16)) & 0xff;398 *vosBuf++ = (freq >> (24 - 7 - 8)); 399 *vosBuf++ = (freq >> (24 - 7 - 16)); 402 400 *vosBuf++ = ((freq & 1) << 7) | (channels << 3); 403 401 *vosLen = 5;
