Skip to content

Commit

Permalink
Bug 1749044 - Implement AudioDecoder.cpp. r=chunmin,webidl,saschanaz,…
Browse files Browse the repository at this point in the history
…smaug

Differential Revision: https://phabricator.services.mozilla.com/D192351
  • Loading branch information
padenot committed Mar 5, 2024
1 parent 82d8271 commit c3b72ad
Show file tree
Hide file tree
Showing 11 changed files with 796 additions and 176 deletions.
8 changes: 0 additions & 8 deletions dom/media/MediaInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,6 @@ inline already_AddRefed<MediaByteBuffer> ForceGetAudioCodecSpecificBlob(
// information as a blob or where a blob is ambiguous.
inline already_AddRefed<MediaByteBuffer> GetAudioCodecSpecificBlob(
const AudioCodecSpecificVariant& v) {
MOZ_ASSERT(!v.is<NoCodecSpecificData>(),
"NoCodecSpecificData shouldn't be used as a blob");
MOZ_ASSERT(!v.is<AacCodecSpecificData>(),
"AacCodecSpecificData has 2 blobs internally, one should "
"explicitly be selected");
MOZ_ASSERT(!v.is<Mp3CodecSpecificData>(),
"Mp3CodecSpecificData shouldn't be used as a blob");

return ForceGetAudioCodecSpecificBlob(v);
}

Expand Down
1 change: 1 addition & 0 deletions dom/media/webcodecs/AudioData.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef mozilla_dom_AudioData_h
#define mozilla_dom_AudioData_h

#include "MediaData.h"
#include "WebCodecsUtils.h"
#include "js/TypeDecls.h"
#include "mozilla/ErrorResult.h"
Expand Down
Loading

0 comments on commit c3b72ad

Please sign in to comment.