Index: webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
diff --git a/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc b/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
index 5b9a8953325a2f140a8f3501a52e5ae3c486c3c4..e94ea6572e12b82d77f25b6569b63e0437652108 100644 |
--- a/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
+++ b/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc |
@@ -391,7 +391,8 @@ AudioEncoderOpus::AudioEncoderOpus( |
? std::move(bitrate_smoother) : std::unique_ptr<SmoothingFilter>( |
// We choose 5sec as initial time constant due to empirical data. |
new SmoothingFilterImpl(5000))) { |
- RTC_DCHECK(0 <= payload_type && payload_type <= 127); |
+ RTC_DCHECK_GE(payload_type, 0); |
+ RTC_DCHECK_LE(payload_type, 127); |
// Sanity check of the redundant payload type field that we want to get rid |
// of. See https://bugs.chromium.org/p/webrtc/issues/detail?id=7847 |