RtpFrameReferenceFinder VP8 reference calculation fix.
BUG=webrtc:7768 Review-Url: https://codereview.webrtc.org/2980943003 Cr-Commit-Position: refs/heads/master@{#19018}
This commit is contained in:
@ -264,11 +264,10 @@ RtpFrameReferenceFinder::FrameDecision RtpFrameReferenceFinder::ManageFrameVp8(
|
||||
// Find if there has been a gap in fully received frames and save the picture
|
||||
// id of those frames in |not_yet_received_frames_|.
|
||||
if (AheadOf<uint16_t, kPicIdLength>(frame->picture_id, last_picture_id_)) {
|
||||
last_picture_id_ = Add<kPicIdLength>(last_picture_id_, 1);
|
||||
while (last_picture_id_ != frame->picture_id) {
|
||||
not_yet_received_frames_.insert(last_picture_id_);
|
||||
do {
|
||||
last_picture_id_ = Add<kPicIdLength>(last_picture_id_, 1);
|
||||
}
|
||||
not_yet_received_frames_.insert(last_picture_id_);
|
||||
} while (last_picture_id_ != frame->picture_id);
|
||||
}
|
||||
|
||||
// Clean up info for base layers that are too old.
|
||||
|
||||
Reference in New Issue
Block a user