Cosmetics
This commit is contained in:
1 parent
187448da56
commit
2aa920bd5a
1 file changed
+9
-4
@@ -20,8 +20,7 @@ extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig);
|
|||||||
MP4GetTrackFloatProperty(fileHandle, _Id, "tkhd.volume", &_volume);
|
MP4GetTrackFloatProperty(fileHandle, _Id, "tkhd.volume", &_volume);
|
||||||
_mediaType = MP42MediaTypeAudio;
|
_mediaType = MP42MediaTypeAudio;
|
||||||
|
|
||||||
u_int8_t audioType =
|
u_int8_t audioType = MP4GetTrackEsdsObjectTypeId(fileHandle, _Id);
|
||||||
MP4GetTrackEsdsObjectTypeId(fileHandle, _Id);
|
|
||||||
|
|
||||||
if (audioType != MP4_INVALID_AUDIO_TYPE) {
|
if (audioType != MP4_INVALID_AUDIO_TYPE) {
|
||||||
if (MP4_IS_AAC_AUDIO_TYPE(audioType)) {
|
if (MP4_IS_AAC_AUDIO_TYPE(audioType)) {
|
||||||
@@ -36,8 +35,10 @@ extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig);
|
|||||||
_channels = MP4AV_AacConfigGetChannels(pAacConfig);
|
_channels = MP4AV_AacConfigGetChannels(pAacConfig);
|
||||||
free(pAacConfig);
|
free(pAacConfig);
|
||||||
}
|
}
|
||||||
} else if ((audioType == MP4_PCM16_LITTLE_ENDIAN_AUDIO_TYPE) ||
|
}
|
||||||
(audioType == MP4_PCM16_BIG_ENDIAN_AUDIO_TYPE)) {
|
else if ((audioType == MP4_PCM16_LITTLE_ENDIAN_AUDIO_TYPE) ||
|
||||||
|
(audioType == MP4_PCM16_BIG_ENDIAN_AUDIO_TYPE)) {
|
||||||
|
|
||||||
u_int32_t samplesPerFrame =
|
u_int32_t samplesPerFrame =
|
||||||
MP4GetSampleSize(fileHandle, _Id, 1) / 2;
|
MP4GetSampleSize(fileHandle, _Id, 1) / 2;
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audioType == 0xA9) {
|
if (audioType == 0xA9) {
|
||||||
uint64_t channels_count = 0;
|
uint64_t channels_count = 0;
|
||||||
MP4GetTrackIntegerProperty(fileHandle, _Id, "mdia.minf.stbl.stsd.mp4a.channels", &channels_count);
|
MP4GetTrackIntegerProperty(fileHandle, _Id, "mdia.minf.stbl.stsd.mp4a.channels", &channels_count);
|
||||||
@@ -63,6 +65,9 @@ extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig);
|
|||||||
|
|
||||||
readAC3Config(acmod, lfeon, &_channels, &_channelLayoutTag);
|
readAC3Config(acmod, lfeon, &_channels, &_channelLayoutTag);
|
||||||
}
|
}
|
||||||
|
else if (MP4HaveTrackAtom(fileHandle, _Id, "mdia.minf.stbl.stsd.ac-3.dec3")) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
else if (MP4HaveTrackAtom(fileHandle, _Id, "mdia.minf.stbl.stsd.alac")) {
|
else if (MP4HaveTrackAtom(fileHandle, _Id, "mdia.minf.stbl.stsd.alac")) {
|
||||||
uint64_t channels_count = 0;
|
uint64_t channels_count = 0;
|
||||||
MP4GetTrackIntegerProperty(fileHandle, _Id, "mdia.minf.stbl.stsd.alac.channels", &channels_count);
|
MP4GetTrackIntegerProperty(fileHandle, _Id, "mdia.minf.stbl.stsd.alac.channels", &channels_count);
|
||||||
|
|||||||
Reference in new issue
Block a user