Add RTPVideoHeader accessor.

Preparation CL to remove RTPTypeHeader.

Follow up to this CL (https://webrtc-review.googlesource.com/c/src/+/83985).

Bug: none
Change-Id: I5da83f682bd72aec2f8d50998624de92e3404c58
Reviewed-on: https://webrtc-review.googlesource.com/84423
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23693}
This commit is contained in:
philipel 2018-06-20 16:38:50 +02:00 committed by Commit Bot
parent fd2457b10f
commit 7b55c73d31

View File

@ -70,6 +70,8 @@ union RTPTypeHeader {
struct WebRtcRTPHeader {
RTPHeader header;
FrameType frameType;
// TODO(philipel): Remove with RTPTypeHeader.
RTPVideoHeader& video_header() { return type.Video; }
RTPTypeHeader type;
// NTP time of the capture time in local timebase in milliseconds.
int64_t ntp_time_ms;