Remove incompatiblities with absl::optional in audio_coding
PCMFile.cc uses RTC_DCHECK. include and depend on rtc_base:checks target directly change usage of value_or by using explicit constructor instead of implicit Bug: webrtc:9078 Change-Id: I63c596b8a05b387e56df846b15c33a605fbad4e6 Reviewed-on: https://webrtc-review.googlesource.com/69985 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22897}
This commit is contained in:
committed by
Commit Bot
parent
70595c1c35
commit
8aba6b4114
@ -230,7 +230,8 @@ int DecoderDatabase::InsertExternal(uint8_t rtp_payload_type,
|
||||
}
|
||||
|
||||
const auto opt_db_format = NetEqDecoderToSdpAudioFormat(codec_type);
|
||||
const SdpAudioFormat format = opt_db_format.value_or({"arbitrary", 0, 0});
|
||||
const SdpAudioFormat format =
|
||||
opt_db_format.value_or(SdpAudioFormat("arbitrary", 0, 0));
|
||||
|
||||
std::pair<DecoderMap::iterator, bool> ret;
|
||||
DecoderInfo info(format, decoder, codec_name);
|
||||
|
||||
Reference in New Issue
Block a user