Index: webrtc/media/engine/webrtcvoiceengine.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc |
index b9a725b0a0519bce6ccd006dd1d6ed4ec3de6378..aecda2b9b338b69f0ff25653c16f40e85abbfe73 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine.cc |
@@ -1473,7 +1473,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; |
} |