summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaInfo.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/media/MediaInfo.h
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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());