Commit 5a45e6d2 authored by Dongheun Kang's avatar Dongheun Kang Committed by Commit Bot

Fix "control reaches end of non-void function" compile warning

Bug: None
Change-Id: I39f6341e4deecb17ee137674f2548f2151ec6cfd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2154353Reviewed-by: default avatarJohn Rummell <jrummell@chromium.org>
Reviewed-by: default avatarMatthew Wolenetz <wolenetz@chromium.org>
Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#761143}
parent 5964f953
......@@ -19,6 +19,9 @@ const char* GetDecodeStatusString(DecodeStatus status) {
case DecodeStatus::DECODE_ERROR:
return "DecodeStatus::DECODE_ERROR";
}
NOTREACHED();
return "";
}
std::ostream& operator<<(std::ostream& os, const DecodeStatus& status) {
......
......@@ -44,6 +44,9 @@ bool IsSupportedHdrMetadata(const HdrMetadataType& hdr_metadata_type) {
case HdrMetadataType::kSmpteSt2094_40:
return false;
}
NOTREACHED();
return false;
}
} // namespace
......@@ -199,6 +202,9 @@ bool IsAudioCodecProprietary(AudioCodec codec) {
case kUnknownAudioCodec:
return false;
}
NOTREACHED();
return false;
}
bool IsDefaultSupportedAudioType(const AudioType& type) {
......@@ -269,6 +275,9 @@ bool IsVideoCodecProprietary(VideoCodec codec) {
case kCodecAV1:
return false;
}
NOTREACHED();
return false;
}
// TODO(chcunningham): Add platform specific logic for Android (move from
......
......@@ -91,6 +91,9 @@ const char* GetStatusString(
case DecoderStream<StreamType>::DECODE_ERROR:
return "decode_error";
}
NOTREACHED();
return "";
}
template <DemuxerStream::Type StreamType>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment