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());