mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Alow AAC audio codec data in matroska/webm streams.
Allow CRC32 elements in matroska cluster elements.
This commit is contained in:
parent
d2baf53a14
commit
3dfc953945
4 changed files with 28 additions and 2 deletions
|
|
@ -82,6 +82,10 @@ WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (IsAACCodecString(codec)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Some unsupported codec.
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -422,6 +422,8 @@ WebMDemuxer::ReadMetadata()
|
|||
mInfo.mAudio.mMimeType = "audio/opus";
|
||||
OpusDataDecoder::AppendCodecDelay(mInfo.mAudio.mCodecSpecificConfig,
|
||||
media::TimeUnit::FromNanoseconds(params.codec_delay).ToMicroseconds());
|
||||
} else if (mAudioCodec == NESTEGG_CODEC_AAC) {
|
||||
mInfo.mAudio.mMimeType = "audio/mp4a-latm";
|
||||
}
|
||||
mSeekPreroll = params.seek_preroll;
|
||||
mInfo.mAudio.mRate = params.rate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue