From a43ffb32f2b1f3243e02c76678ce3fdb6f655a9e Mon Sep 17 00:00:00 2001 From: Evan Shrubsole Date: Fri, 10 Sep 2021 17:09:51 +0200 Subject: [PATCH] Remove unnecessary static_cast in rtp_video_stream_receiver2 Bug: None Change-Id: I8f7424c877e07ee585d46adc81b777577c43d796 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/231697 Reviewed-by: Ilya Nikolaevskiy Commit-Queue: Evan Shrubsole Cr-Commit-Position: refs/heads/main@{#34977} --- video/rtp_video_stream_receiver2.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/video/rtp_video_stream_receiver2.cc b/video/rtp_video_stream_receiver2.cc index 309d158873..21414ff8b3 100644 --- a/video/rtp_video_stream_receiver2.cc +++ b/video/rtp_video_stream_receiver2.cc @@ -861,8 +861,7 @@ void RtpVideoStreamReceiver2::OnAssembledFrame( void RtpVideoStreamReceiver2::OnCompleteFrames( RtpFrameReferenceFinder::ReturnVector frames) { for (auto& frame : frames) { - RtpFrameObject* rtp_frame = static_cast(frame.get()); - last_seq_num_for_pic_id_[rtp_frame->Id()] = rtp_frame->last_seq_num(); + last_seq_num_for_pic_id_[frame->Id()] = frame->last_seq_num(); last_completed_picture_id_ = std::max(last_completed_picture_id_, frame->Id());