Clear FrameBuffer if there were no frames received for 10 minutes
This is a workaround for the case when there are no video frames in a
call for a very long time, such that RTP timestamps wraparound and
FrameBuffer can't figure out if the frame is older or newer.
Bug: webrtc:9974
Change-Id: Ie1eaa4938813dbbd637ddcbe7ff118ead2bfa4a9
Reviewed-on: https://webrtc-review.googlesource.com/c/109882
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25548}
diff --git a/video/video_receive_stream.h b/video/video_receive_stream.h
index e5f69a7..e32aa19 100644
--- a/video/video_receive_stream.h
+++ b/video/video_receive_stream.h
@@ -146,6 +146,7 @@
bool frame_decoded_ = false;
int64_t last_keyframe_request_ms_ = 0;
+ int64_t last_complete_frame_time_ms_ = 0;
};
} // namespace internal
} // namespace webrtc