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

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

Issue 1988653002: PacketBuffer now can save how many times a packet has been nacked. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: combined_size to frame_size Created 4 years, 7 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_object.cc
diff --git a/webrtc/modules/video_coding/frame_object.cc b/webrtc/modules/video_coding/frame_object.cc
index 7b9ec0d283596ef10bde59e3b4f36b776e31c5a0..d755cc667af50ad5b1750a23f9f52b69deee5782 100644
--- a/webrtc/modules/video_coding/frame_object.cc
+++ b/webrtc/modules/video_coding/frame_object.cc
@@ -24,10 +24,14 @@ FrameObject::FrameObject()
RtpFrameObject::RtpFrameObject(PacketBuffer* packet_buffer,
uint16_t first_seq_num,
- uint16_t last_seq_num)
+ uint16_t last_seq_num,
+ size_t frame_size,
+ int8_t max_nack_count)
: packet_buffer_(packet_buffer),
first_seq_num_(first_seq_num),
- last_seq_num_(last_seq_num) {
+ last_seq_num_(last_seq_num),
+ max_nack_count_(max_nack_count) {
+ size = frame_size;
VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num);
if (packet) {
frame_type_ = packet->frameType;
@@ -47,6 +51,10 @@ uint16_t RtpFrameObject::last_seq_num() const {
return last_seq_num_;
}
+int8_t RtpFrameObject::max_nack_count() const {
+ return max_nack_count_;
+}
+
FrameType RtpFrameObject::frame_type() const {
return frame_type_;
}

Powered by Google App Engine
This is Rietveld 408576698