summaryrefslogtreecommitdiffstats
path: root/dom/media/webm/WebMDemuxer.cpp
diff options
context:
space:
mode:
authorJeroen Vreeken <jeroen@vreeken.net>2019-07-18 11:00:46 +0200
committerJeroen Vreeken <jeroen@vreeken.net>2019-07-18 11:00:46 +0200
commit6b6aa59ffc97ac76b4429db38eedac8474f5fda7 (patch)
tree683de407619abacc91046e2071236df17f972958 /dom/media/webm/WebMDemuxer.cpp
parent31addeaac8841867008699478ef55e1c1b3d68a7 (diff)
downloadUXP-6b6aa59ffc97ac76b4429db38eedac8474f5fda7.tar
UXP-6b6aa59ffc97ac76b4429db38eedac8474f5fda7.tar.gz
UXP-6b6aa59ffc97ac76b4429db38eedac8474f5fda7.tar.lz
UXP-6b6aa59ffc97ac76b4429db38eedac8474f5fda7.tar.xz
UXP-6b6aa59ffc97ac76b4429db38eedac8474f5fda7.zip
Alow AAC audio codec data in matroska/webm streams.
Allow CRC32 elements in matroska cluster elements.
Diffstat (limited to 'dom/media/webm/WebMDemuxer.cpp')
-rw-r--r--dom/media/webm/WebMDemuxer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/media/webm/WebMDemuxer.cpp b/dom/media/webm/WebMDemuxer.cpp
index 2b6d46186..84b4b506e 100644
--- a/dom/media/webm/WebMDemuxer.cpp
+++ b/dom/media/webm/WebMDemuxer.cpp
@@ -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;