| Index: webrtc/pc/srtpfilter.cc
|
| diff --git a/webrtc/pc/srtpfilter.cc b/webrtc/pc/srtpfilter.cc
|
| index 5e2dbb0eb6ca2e9b7b5ab9da12ffa7035ee1433b..7000ed9f6b18cd6cee89fb9681afa56d44fa3409 100644
|
| --- a/webrtc/pc/srtpfilter.cc
|
| +++ b/webrtc/pc/srtpfilter.cc
|
| @@ -215,6 +215,17 @@ bool SrtpFilter::GetRtpAuthParams(uint8_t** key, int* key_len, int* tag_len) {
|
| return send_session_->GetRtpAuthParams(key, key_len, tag_len);
|
| }
|
|
|
| +bool SrtpFilter::GetSrtpOverhead(int* srtp_overhead) const {
|
| + if (!IsActive()) {
|
| + LOG(LS_WARNING) << "Failed to GetSrtpOverhead: SRTP not active";
|
| + return false;
|
| + }
|
| +
|
| + RTC_CHECK(send_session_);
|
| + *srtp_overhead = send_session_->GetSrtpOverhead();
|
| + return true;
|
| +}
|
| +
|
| void SrtpFilter::set_signal_silent_time(int signal_silent_time_in_ms) {
|
| signal_silent_time_in_ms_ = signal_silent_time_in_ms;
|
| if (IsActive()) {
|
| @@ -606,6 +617,10 @@ bool SrtpSession::GetRtpAuthParams(uint8_t** key, int* key_len, int* tag_len) {
|
| #endif
|
| }
|
|
|
| +int SrtpSession::GetSrtpOverhead() const {
|
| + return rtp_auth_tag_len_;
|
| +}
|
| +
|
| bool SrtpSession::GetSendStreamPacketIndex(void* p,
|
| int in_len,
|
| int64_t* index) {
|
|
|