summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/MediaInfo.h')
-rw-r--r--dom/media/MediaInfo.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/dom/media/MediaInfo.h b/dom/media/MediaInfo.h
index abe5dfd9da..73704d1593 100644
--- a/dom/media/MediaInfo.h
+++ b/dom/media/MediaInfo.h
@@ -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);
}
@@ -470,7 +462,8 @@ class VideoInfo : public TrackInfo {
rv.AppendPrintf("extra data: %zu bytes", mExtraData->Length());
}
rv.AppendPrintf("rotation: %d", static_cast<int>(mRotation));
- rv.AppendPrintf("colors: %s", ColorDepthStrings[static_cast<int>(mColorDepth)]);
+ rv.AppendPrintf("colors: %s",
+ ColorDepthStrings[static_cast<int>(mColorDepth)]);
if (mColorSpace) {
rv.AppendPrintf(
"YUV colorspace: %s ",
@@ -486,7 +479,8 @@ class VideoInfo : public TrackInfo {
"transfer function %s ",
TransferFunctionStrings[static_cast<int>(mTransferFunction.value())]);
}
- rv.AppendPrintf("color range: %s", ColorRangeStrings[static_cast<int>(mColorRange)]);
+ rv.AppendPrintf("color range: %s",
+ ColorRangeStrings[static_cast<int>(mColorRange)]);
if (mImageRect) {
rv.AppendPrintf("image rect: %dx%d", mImageRect->Width(),
mImageRect->Height());