Chromium Code Reviews| 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..650b65ff2c94abae45bd1f1d5ced10e025139137 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, |
| + int times_nacked) |
| : packet_buffer_(packet_buffer), |
| first_seq_num_(first_seq_num), |
| - last_seq_num_(last_seq_num) { |
| + last_seq_num_(last_seq_num), |
| + times_nacked_(times_nacked) { |
| + size = frame_size; |
|
stefan-webrtc
2016/05/23 13:42:07
Maybe pass this in to the FrameObject via construc
|
| 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_; |
| } |
| +int RtpFrameObject::times_nacked() const { |
| + return times_nacked_; |
| +} |
| + |
| FrameType RtpFrameObject::frame_type() const { |
| return frame_type_; |
| } |