Skip to content

Commit 6b2d7bc

Browse files
author
Otto Länd
committed
Bug 1749044, 1858958, 1859536: apply code formatting via Lando
# ignore-this-changeset
1 parent f0a6ff3 commit 6b2d7bc

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

dom/base/StructuredCloneHolder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@ JSObject* StructuredCloneHolder::CustomReadHandler(
11531153
}
11541154
}
11551155

1156-
11571156
return ReadFullySerializableObjects(aCx, aReader, aTag, false);
11581157
}
11591158

dom/media/MediaInfo.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ class VideoInfo : public TrackInfo {
462462
rv.AppendPrintf("extra data: %zu bytes", mExtraData->Length());
463463
}
464464
rv.AppendPrintf("rotation: %d", static_cast<int>(mRotation));
465-
rv.AppendPrintf("colors: %s", ColorDepthStrings[static_cast<int>(mColorDepth)]);
465+
rv.AppendPrintf("colors: %s",
466+
ColorDepthStrings[static_cast<int>(mColorDepth)]);
466467
if (mColorSpace) {
467468
rv.AppendPrintf(
468469
"YUV colorspace: %s ",
@@ -478,7 +479,8 @@ class VideoInfo : public TrackInfo {
478479
"transfer function %s ",
479480
TransferFunctionStrings[static_cast<int>(mTransferFunction.value())]);
480481
}
481-
rv.AppendPrintf("color range: %s", ColorRangeStrings[static_cast<int>(mColorRange)]);
482+
rv.AppendPrintf("color range: %s",
483+
ColorRangeStrings[static_cast<int>(mColorRange)]);
482484
if (mImageRect) {
483485
rv.AppendPrintf("image rect: %dx%d", mImageRect->Width(),
484486
mImageRect->Height());

dom/media/platforms/agnostic/bytestreams/Adts.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ bool FrameHeader::Parse(const Span<const uint8_t>& aData) {
167167
mObjectType = ((aData[2] & 0xC0) >> 6) + 1;
168168
mSamplingIndex = (aData[2] & 0x3C) >> 2;
169169
mChannelConfig = (aData[2] & 0x01) << 2 | (aData[3] & 0xC0) >> 6;
170-
mFrameLength = static_cast<uint32_t>(
171-
(aData[3] & 0x03) << 11 | (aData[4] & 0xFF) << 3 | (aData[5] & 0xE0) >> 5);
170+
mFrameLength =
171+
static_cast<uint32_t>((aData[3] & 0x03) << 11 | (aData[4] & 0xFF) << 3 |
172+
(aData[5] & 0xE0) >> 5);
172173
mNumAACFrames = (aData[6] & 0x03) + 1;
173174

174175
static const uint32_t SAMPLE_RATES[] = {96000, 88200, 64000, 48000, 44100,

dom/media/platforms/apple/AppleATDecoder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,10 @@ MediaResult AppleATDecoder::SetupDecoder(MediaRawData* aSample) {
524524

525525
if (isADTS) {
526526
ADTS::FrameParser parser;
527-
if(!parser.Parse(0, aSample->Data(), aSample->Data() + aSample->Size())) {
528-
LOG("ADTS frame parsing error");
529-
return NS_ERROR_NOT_INITIALIZED;
530-
}
527+
if (!parser.Parse(0, aSample->Data(), aSample->Data() + aSample->Size())) {
528+
LOG("ADTS frame parsing error");
529+
return NS_ERROR_NOT_INITIALIZED;
530+
}
531531

532532
AudioCodecSpecificBinaryBlob blob;
533533
ADTS::InitAudioSpecificConfig(parser.FirstFrame(), blob.mBinaryBlob);

dom/media/webcodecs/AudioData.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(AudioData)
5252
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mParent)
5353
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
5454

55-
5655
NS_IMPL_CYCLE_COLLECTING_ADDREF(AudioData)
5756
// AudioData should be released as soon as its refcount drops to zero,
5857
// without waiting for async deletion by the cycle collector, since it may hold

dom/media/webcodecs/AudioData.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ class AudioDataResource final {
128128
explicit AudioDataResource(FallibleTArray<uint8_t>&& aData)
129129
: mData(std::move(aData)) {}
130130

131-
explicit AudioDataResource()
132-
: mData() {}
131+
explicit AudioDataResource() : mData() {}
133132

134133
static AudioDataResource* Create(const Span<uint8_t>& aData) {
135134
AudioDataResource* resource = new AudioDataResource();

dom/media/webcodecs/WebCodecsUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,4 @@ Result<RefPtr<MediaByteBuffer>, nsresult> GetExtraDataFromArrayBuffer(
584584
return data->Length() > 0 ? data : nullptr;
585585
}
586586

587-
} // namespace mozilla::dom
587+
} // namespace mozilla::dom

0 commit comments

Comments
 (0)