COMMON: Allow for parsing QuickTime MIDI files
This commit is contained in:
parent
1f11ce6df2
commit
bbf0bbcd64
2 changed files with 6 additions and 1 deletions
|
@ -165,6 +165,8 @@ void QuickTimeParser::initParseTable() {
|
|||
{ &QuickTimeParser::readWAVE, MKTAG('w', 'a', 'v', 'e') },
|
||||
{ &QuickTimeParser::readESDS, MKTAG('e', 's', 'd', 's') },
|
||||
{ &QuickTimeParser::readSMI, MKTAG('S', 'M', 'I', ' ') },
|
||||
{ &QuickTimeParser::readDefault, MKTAG('g', 'm', 'h', 'd') },
|
||||
{ &QuickTimeParser::readLeaf, MKTAG('g', 'm', 'i', 'n') },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
@ -477,6 +479,8 @@ int QuickTimeParser::readHDLR(Atom atom) {
|
|||
track->codecType = CODEC_TYPE_VIDEO;
|
||||
else if (type == MKTAG('s', 'o', 'u', 'n'))
|
||||
track->codecType = CODEC_TYPE_AUDIO;
|
||||
else if (type == MKTAG('m', 'u', 's', 'i'))
|
||||
track->codecType = CODEC_TYPE_MIDI;
|
||||
|
||||
_fd->readUint32BE(); // component manufacture
|
||||
_fd->readUint32BE(); // component flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue