From 7b55c73d31dcce8edc0c8fe854b5e6769fc997c1 Mon Sep 17 00:00:00 2001 From: philipel Date: Wed, 20 Jun 2018 16:38:50 +0200 Subject: [PATCH] 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 Commit-Queue: Philip Eliasson Cr-Commit-Position: refs/heads/master@{#23693} --- modules/include/module_common_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/include/module_common_types.h b/modules/include/module_common_types.h index 6554adb1f9..a1889d4bdc 100644 --- a/modules/include/module_common_types.h +++ b/modules/include/module_common_types.h @@ -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;