summaryrefslogtreecommitdiff
path: root/dom/media/MediaInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/MediaInfo.cpp')
-rw-r--r--dom/media/MediaInfo.cpp12
1 files changed, 6 insertions, 6 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;
}
}