aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorphilipel <philipel@webrtc.org>2018-09-07 13:20:40 +0200
committerCommit Bot <commit-bot@chromium.org>2018-09-10 10:03:41 +0000
commit0417eadbf235e7f732ae1ac95523dabc0fd934e1 (patch)
treebe6e1397e2ab72b7814c0eb17b0636d8445f6823 /modules
parent4384f5328552692780647185816a02918b09aa35 (diff)
downloadwebrtc-0417eadbf235e7f732ae1ac95523dabc0fd934e1.tar.gz
Removed unused member |last_unwrap_| from RtpFrameReferenceFinder.
Bug: none Change-Id: Ideb876d89dbab7a9f4c8c46d95217f00e07b62d6 Reviewed-on: https://webrtc-review.googlesource.com/98862 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24644}
Diffstat (limited to 'modules')
-rw-r--r--modules/video_coding/rtp_frame_reference_finder.cc10
-rw-r--r--modules/video_coding/rtp_frame_reference_finder.h4
2 files changed, 0 insertions, 14 deletions
diff --git a/modules/video_coding/rtp_frame_reference_finder.cc b/modules/video_coding/rtp_frame_reference_finder.cc
index 3d0667f213..6c93c84018 100644
--- a/modules/video_coding/rtp_frame_reference_finder.cc
+++ b/modules/video_coding/rtp_frame_reference_finder.cc
@@ -26,7 +26,6 @@ namespace video_coding {
RtpFrameReferenceFinder::RtpFrameReferenceFinder(
OnCompleteFrameCallback* frame_callback)
: last_picture_id_(-1),
- last_unwrap_(-1),
current_ss_idx_(0),
cleared_to_seq_num_(-1),
frame_callback_(frame_callback) {}
@@ -167,9 +166,6 @@ RtpFrameReferenceFinder::ManageFrameGeneric(RtpFrameObject* frame,
// If |picture_id| is specified then we use that to set the frame references,
// otherwise we use sequence number.
if (picture_id != kNoPictureId) {
- if (last_unwrap_ == -1)
- last_unwrap_ = picture_id;
-
frame->id.picture_id = unwrapper_.Unwrap(picture_id);
frame->num_references = frame->frame_type() == kVideoFrameKey ? 0 : 1;
frame->references[0] = frame->id.picture_id - 1;
@@ -256,9 +252,6 @@ RtpFrameReferenceFinder::FrameDecision RtpFrameReferenceFinder::ManageFrameVp8(
frame->id.picture_id = codec_header.pictureId % kPicIdLength;
- if (last_unwrap_ == -1)
- last_unwrap_ = codec_header.pictureId;
-
if (last_picture_id_ == -1)
last_picture_id_ = frame->id.picture_id;
@@ -410,9 +403,6 @@ RtpFrameReferenceFinder::FrameDecision RtpFrameReferenceFinder::ManageFrameVp9(
frame->inter_layer_predicted = codec_header.inter_layer_predicted;
frame->id.picture_id = codec_header.picture_id % kPicIdLength;
- if (last_unwrap_ == -1)
- last_unwrap_ = codec_header.picture_id;
-
if (last_picture_id_ == -1)
last_picture_id_ = frame->id.picture_id;
diff --git a/modules/video_coding/rtp_frame_reference_finder.h b/modules/video_coding/rtp_frame_reference_finder.h
index 09467cb6f3..501fcbc81a 100644
--- a/modules/video_coding/rtp_frame_reference_finder.h
+++ b/modules/video_coding/rtp_frame_reference_finder.h
@@ -149,10 +149,6 @@ class RtpFrameReferenceFinder {
std::set<uint16_t, DescendingSeqNumComp<uint16_t>> stashed_padding_
RTC_GUARDED_BY(crit_);
- // The last unwrapped picture id. Used to unwrap the picture id from a length
- // of |kPicIdLength| to 16 bits.
- int last_unwrap_ RTC_GUARDED_BY(crit_);
-
// Frames earlier than the last received frame that have not yet been
// fully received.
std::set<uint16_t, DescendingSeqNumComp<uint16_t, kPicIdLength>>