Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: webrtc/modules/video_coding/frame_buffer.cc

Issue 2007743003: Add sender controlled playout delay limits (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@cleanup_rtp_hdr_extensions
Patch Set: Rename OnReceivedRtcpReport to OnReceivedRtcpReportBlocks Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/frame_buffer.cc
diff --git a/webrtc/modules/video_coding/frame_buffer.cc b/webrtc/modules/video_coding/frame_buffer.cc
index 11db7853bfc08d5debb7dcb3a67f035e8ac8e57a..61db0d12325059afe4bf906677c4d7e5d39be434 100644
--- a/webrtc/modules/video_coding/frame_buffer.cc
+++ b/webrtc/modules/video_coding/frame_buffer.cc
@@ -129,7 +129,7 @@ VCMFrameBufferEnum VCMFrameBuffer::InsertPacket(
// Don't copy payload specific data for empty packets (e.g padding packets).
if (packet.sizeBytes > 0)
- CopyCodecSpecific(&packet.codecSpecificHeader);
+ CopyCodecSpecific(&packet.video_header);
int retVal =
_sessionInfo.InsertPacket(packet, _buffer, decode_error_mode, frame_data);
@@ -153,10 +153,14 @@ VCMFrameBufferEnum VCMFrameBuffer::InsertPacket(
// (HEVC)).
if (packet.markerBit) {
RTC_DCHECK(!_rotation_set);
- _rotation = packet.codecSpecificHeader.rotation;
+ _rotation = packet.video_header.rotation;
_rotation_set = true;
}
+ if (packet.isFirstPacket) {
+ playout_delay_ = packet.video_header.playout_delay;
+ }
+
if (_sessionInfo.complete()) {
SetState(kStateComplete);
return kCompleteSession;

Powered by Google App Engine
This is Rietveld 408576698