diff options
Diffstat (limited to 'dom/media')
-rw-r--r-- | dom/media/MediaInfo.cpp | 12 | ||||
-rw-r--r-- | dom/media/MediaManager.cpp | 2 | ||||
-rw-r--r-- | dom/media/fmp4/MP4Demuxer.cpp | 2 | ||||
-rw-r--r-- | dom/media/webm/WebMBufferedParser.cpp | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/dom/media/MediaInfo.cpp b/dom/media/MediaInfo.cpp index 568183e688..f40f1584d9 100644 --- a/dom/media/MediaInfo.cpp +++ b/dom/media/MediaInfo.cpp @@ -144,9 +144,9 @@ AudioConfig::SampleSize(AudioConfig::SampleFormat aFormat) switch (aFormat) { case FORMAT_U8: return 1; case FORMAT_S16: return 2; - case FORMAT_S24: MOZ_FALLTHROUGH; - case FORMAT_S24LSB: MOZ_FALLTHROUGH; - case FORMAT_S32: MOZ_FALLTHROUGH; + case FORMAT_S24: [[fallthrough]]; + case FORMAT_S24LSB: [[fallthrough]]; + case FORMAT_S32: [[fallthrough]]; case FORMAT_FLT: return 4; case FORMAT_NONE: default: return 0; @@ -159,11 +159,11 @@ AudioConfig::FormatToBits(AudioConfig::SampleFormat aFormat) switch (aFormat) { case FORMAT_U8: return 8; case FORMAT_S16: return 16; - case FORMAT_S24LSB: MOZ_FALLTHROUGH; + case FORMAT_S24LSB: [[fallthrough]]; case FORMAT_S24: return 24; - case FORMAT_S32: MOZ_FALLTHROUGH; + case FORMAT_S32: [[fallthrough]]; case FORMAT_FLT: return 32; - case FORMAT_NONE: MOZ_FALLTHROUGH; + case FORMAT_NONE: [[fallthrough]]; default: return 0; } } diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index 7fd11f1715..b98e0cfb06 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -2053,7 +2053,7 @@ MediaManager::GetUserMedia(nsPIDOMWindowInner* aWindow, nsPIDOMWindowOuter* outer = aWindow->GetOuterWindow(); vc.mBrowserWindow.Construct(outer->WindowID()); } - MOZ_FALLTHROUGH; + [[fallthrough]]; case MediaSourceEnum::Screen: case MediaSourceEnum::Application: case MediaSourceEnum::Window: diff --git a/dom/media/fmp4/MP4Demuxer.cpp b/dom/media/fmp4/MP4Demuxer.cpp index 5ac7fa518c..77eb783a28 100644 --- a/dom/media/fmp4/MP4Demuxer.cpp +++ b/dom/media/fmp4/MP4Demuxer.cpp @@ -263,7 +263,7 @@ MP4TrackDemuxer::GetNextSample() mp4_demuxer::H264::FrameType type = mp4_demuxer::H264::GetFrameType(sample); switch (type) { - case mp4_demuxer::H264::FrameType::I_FRAME: MOZ_FALLTHROUGH; + case mp4_demuxer::H264::FrameType::I_FRAME: [[fallthrough]]; case mp4_demuxer::H264::FrameType::OTHER: { bool keyframe = type == mp4_demuxer::H264::FrameType::I_FRAME; diff --git a/dom/media/webm/WebMBufferedParser.cpp b/dom/media/webm/WebMBufferedParser.cpp index 8d9bd7d811..7fc5bc2913 100644 --- a/dom/media/webm/WebMBufferedParser.cpp +++ b/dom/media/webm/WebMBufferedParser.cpp @@ -141,7 +141,7 @@ bool WebMBufferedParser::Append(const unsigned char* aBuffer, uint32_t aLength, case EBML_ID: mLastInitStartOffset = mCurrentOffset + (p - aBuffer) - (mElement.mID.mLength + mElement.mSize.mLength); - MOZ_FALLTHROUGH; + [[fallthrough]]; default: mSkipBytes = mElement.mSize.mValue; mState = SKIP_DATA; |