Index: webrtc/media/engine/webrtcvoiceengine.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc |
index 1ed1e8b9934741a8767ae0d1c81c4fd92aa51946..65a238f3db7924c6e6d415e6580f9d0024aae64c 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine.cc |
@@ -1478,7 +1478,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; |
} |