use kMP42AudioCodecType_MPEGLayer3 for MP4_MPEG1_AUDIO_TYPE audio type.

This commit is contained in:
Damiano Galassi committed 2020-01-28 11:50:27 +01:00
1 parent 9c812b34d7
commit 9a2c5858ce
1 file changed
+1 -1
+1 -1
View File
@@ -217,7 +217,7 @@ FourCharCode getTrackMediaSubType(MP4FileHandle fileHandle, MP4TrackId Id)
uint8_t audiotype = MP4GetTrackEsdsObjectTypeId(fileHandle, Id);
if (audiotype == MP4_MPEG4_AUDIO_TYPE)
return kMP42AudioCodecType_MPEG4AAC;
else if (audiotype == MP4_MPEG2_AUDIO_TYPE)
else if (audiotype == MP4_MPEG2_AUDIO_TYPE || audiotype == MP4_MPEG1_AUDIO_TYPE)
return kMP42AudioCodecType_MPEGLayer3;
else if (audiotype == 0xA9)
return kMP42AudioCodecType_DTS;