| Index: webrtc/modules/video_coding/rtp_frame_reference_finder.cc
|
| diff --git a/webrtc/modules/video_coding/rtp_frame_reference_finder.cc b/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
|
| index ebf2f45dd90c5d27b102cc4ea6079241ab6100ed..66e57b06ed0add046de2b63f05d9df9051d7ef59 100644
|
| --- a/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
|
| +++ b/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
|
| @@ -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.
|
|
|