Delete RtpUtility::Payload, and refactor RTPSender to not use it
Replaced by a payload type --> video codec map in RTPSenderVideo, where it is used to select the right packetizer. Bug: webrtc:6883 Change-Id: I43a635d5135c5d519df860a2f4287a4478870b0f Reviewed-on: https://webrtc-review.googlesource.com/c/119263 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26380}
This commit is contained in:
@ -26,16 +26,6 @@ const uint8_t kRtpMarkerBitMask = 0x80;
|
||||
|
||||
namespace RtpUtility {
|
||||
|
||||
struct Payload {
|
||||
Payload(absl::string_view payload_name, const PayloadUnion& pu)
|
||||
: typeSpecific(pu) {
|
||||
size_t clipped_size = payload_name.copy(name, sizeof(name) - 1);
|
||||
name[clipped_size] = '\0';
|
||||
}
|
||||
char name[RTP_PAYLOAD_NAME_SIZE];
|
||||
PayloadUnion typeSpecific;
|
||||
};
|
||||
|
||||
// Round up to the nearest size that is a multiple of 4.
|
||||
size_t Word32Align(size_t size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user