Index: webrtc/media/engine/webrtcvoiceengine.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc |
index b81173032d7e6852990caed6e7aafdbcbf0b07bf..f983b2a4b565c3f00bfcac3733979091e32c02c2 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine.cc |
@@ -1477,7 +1477,11 @@ class WebRtcVoiceMediaChannel::WebRtcAudioSendStream |
// The adaptor will only be active for the Opus encoder. |
if (config_.audio_network_adaptor_config && |
IsCodec(config_.send_codec_spec.codec_inst, kOpusCodecName)) { |
+#if WEBRTC_OPUS_SUPPORT_120MS_PTIME |
+ max_packet_size_ms = 120; |
+#else |
max_packet_size_ms = 60; |
+#endif |
min_packet_size_ms = 20; |
} |