mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Add support for reading .mp3 boxes in stsd.
This is used by Quicktime for MP3 tracks. Issue: #2066 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139209989
This commit is contained in:
parent
21e3361dfe
commit
0effffb89f
2 changed files with 5 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ import java.util.List;
|
|||
public static final int TYPE_d263 = Util.getIntegerCodeForString("d263");
|
||||
public static final int TYPE_mdat = Util.getIntegerCodeForString("mdat");
|
||||
public static final int TYPE_mp4a = Util.getIntegerCodeForString("mp4a");
|
||||
public static final int TYPE__mp3 = Util.getIntegerCodeForString(".mp3");
|
||||
public static final int TYPE_wave = Util.getIntegerCodeForString("wave");
|
||||
public static final int TYPE_lpcm = Util.getIntegerCodeForString("lpcm");
|
||||
public static final int TYPE_sowt = Util.getIntegerCodeForString("sowt");
|
||||
|
|
|
|||
|
|
@ -600,7 +600,8 @@ import java.util.List;
|
|||
|| childAtomType == Atom.TYPE_dtsc || childAtomType == Atom.TYPE_dtse
|
||||
|| childAtomType == Atom.TYPE_dtsh || childAtomType == Atom.TYPE_dtsl
|
||||
|| childAtomType == Atom.TYPE_samr || childAtomType == Atom.TYPE_sawb
|
||||
|| childAtomType == Atom.TYPE_lpcm || childAtomType == Atom.TYPE_sowt) {
|
||||
|| childAtomType == Atom.TYPE_lpcm || childAtomType == Atom.TYPE_sowt
|
||||
|| childAtomType == Atom.TYPE__mp3) {
|
||||
parseAudioSampleEntry(stsd, childAtomType, childStartPosition, childAtomSize, trackId,
|
||||
language, isQuickTime, drmInitData, out, i);
|
||||
} else if (childAtomType == Atom.TYPE_TTML) {
|
||||
|
|
@ -829,6 +830,8 @@ import java.util.List;
|
|||
mimeType = MimeTypes.AUDIO_AMR_WB;
|
||||
} else if (atomType == Atom.TYPE_lpcm || atomType == Atom.TYPE_sowt) {
|
||||
mimeType = MimeTypes.AUDIO_RAW;
|
||||
} else if (atomType == Atom.TYPE__mp3) {
|
||||
mimeType = MimeTypes.AUDIO_MPEG;
|
||||
}
|
||||
|
||||
byte[] initializationData = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue