Index: webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc |
index 42f0a4c7db0b61dadcc2c61ee28d6b1a7d36b6e1..bee0275efe53ac0461b0d2775007c4a568b16ddf 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc |
@@ -61,9 +61,10 @@ rtc::Maybe<NetEqDecoder> RentACodec::NetEqDecoderFromCodecId(CodecId codec_id, |
if (!i) |
return rtc::Maybe<NetEqDecoder>(); |
const NetEqDecoder ned = ACMCodecDB::neteq_decoders_[*i]; |
- return (ned == NetEqDecoder::kDecoderOpus && num_channels == 2) |
- ? NetEqDecoder::kDecoderOpus_2ch |
- : ned; |
+ return rtc::Maybe<NetEqDecoder>( |
+ (ned == NetEqDecoder::kDecoderOpus && num_channels == 2) |
+ ? NetEqDecoder::kDecoderOpus_2ch |
+ : ned); |
} |
} // namespace acm2 |