mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
parent
79db618ba6
commit
85256bef41
1 changed files with 7 additions and 0 deletions
|
|
@ -68,9 +68,11 @@ public final class WebmExtractor implements Extractor {
|
|||
private static final String CODEC_ID_VORBIS = "A_VORBIS";
|
||||
private static final String CODEC_ID_OPUS = "A_OPUS";
|
||||
private static final String CODEC_ID_AAC = "A_AAC";
|
||||
private static final String CODEC_ID_MP3 = "A_MPEG/L3";
|
||||
private static final String CODEC_ID_AC3 = "A_AC3";
|
||||
private static final int VORBIS_MAX_INPUT_SIZE = 8192;
|
||||
private static final int OPUS_MAX_INPUT_SIZE = 5760;
|
||||
private static final int MP3_MAX_INPUT_SIZE = 4096;
|
||||
private static final int ENCRYPTION_IV_SIZE = 8;
|
||||
private static final int TRACK_TYPE_AUDIO = 2;
|
||||
private static final int TRACK_TYPE_VIDEO = 1;
|
||||
|
|
@ -936,6 +938,7 @@ public final class WebmExtractor implements Extractor {
|
|||
|| CODEC_ID_OPUS.equals(codecId)
|
||||
|| CODEC_ID_VORBIS.equals(codecId)
|
||||
|| CODEC_ID_AAC.equals(codecId)
|
||||
|| CODEC_ID_MP3.equals(codecId)
|
||||
|| CODEC_ID_AC3.equals(codecId);
|
||||
}
|
||||
|
||||
|
|
@ -1059,6 +1062,10 @@ public final class WebmExtractor implements Extractor {
|
|||
mimeType = MimeTypes.AUDIO_AAC;
|
||||
initializationData = Collections.singletonList(codecPrivate);
|
||||
break;
|
||||
case CODEC_ID_MP3:
|
||||
maxInputSize = MP3_MAX_INPUT_SIZE;
|
||||
mimeType = MimeTypes.AUDIO_MPEG;
|
||||
break;
|
||||
case CODEC_ID_AC3:
|
||||
mimeType = MimeTypes.AUDIO_AC3;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue