Re-added the last toAACInit funtion to MP4::AudioSampleEntry
This commit is contained in:
parent
5313793dfa
commit
6420c42ac5
2 changed files with 9 additions and 0 deletions
|
@ -2590,6 +2590,14 @@ namespace MP4{
|
|||
setSampleSize(16);
|
||||
setSampleRate(44100);
|
||||
}
|
||||
|
||||
uint16_t AudioSampleEntry::toAACInit(){
|
||||
uint16_t result = 0;
|
||||
result |= (2 & 0x1F) << 11;
|
||||
result |= (getSampleRate() & 0x0F) << 7;
|
||||
result |= (getChannelCount() & 0x0F) << 3;
|
||||
return result;
|
||||
}
|
||||
|
||||
void AudioSampleEntry::setCodec(const char* newCodec){
|
||||
memcpy(data + 4, newCodec, 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue