Skip to content

Commit

Permalink
Bug 1749044 - Fix error: control reaches end of non-void function r…
Browse files Browse the repository at this point in the history
…=media-playback-reviewers,alwu

Differential Revision: https://phabricator.services.mozilla.com/D203867
  • Loading branch information
ChunMinChang committed Mar 7, 2024
1 parent f2df354 commit 38af635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom/media/webcodecs/AudioData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ uint32_t BytesPerSamples(const mozilla::dom::AudioSampleFormat& aFormat) {
default:
MOZ_ASSERT_UNREACHABLE("wrong enum value");
}
return 0;
}

Result<Ok, nsCString> IsValidAudioDataInit(const AudioDataInit& aInit) {
Expand Down Expand Up @@ -225,6 +226,7 @@ const char* FormatToString(AudioSampleFormat aFormat) {
default:
MOZ_ASSERT_UNREACHABLE("wrong enum value");
}
return "unsupported";
}

/* static */
Expand Down

0 comments on commit 38af635

Please sign in to comment.