Move rtcp packet classes from rtp_rtcp to rtp_rtcp_format target

Bug: None
Change-Id: I353228fd5b75bd4fceeaee1bb6fd07b01dac56a1
Reviewed-on: https://webrtc-review.googlesource.com/1480
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19867}
This commit is contained in:
Danil Chapovalov
2017-09-15 16:48:14 +02:00
committed by Commit Bot
parent 58b0316f3d
commit 6c170578e6
10 changed files with 77 additions and 68 deletions

View File

@ -97,7 +97,7 @@ bool Bye::Create(uint8_t* packet,
}
// Store the reason to leave.
if (!reason_.empty()) {
uint8_t reason_length = reason_.size();
uint8_t reason_length = static_cast<uint8_t>(reason_.size());
packet[(*index)++] = reason_length;
memcpy(&packet[*index], reason_.data(), reason_length);
*index += reason_length;