RTC: Eliminate duplicate assignment for video packet frame type (#2803)

Co-authored-by: zhangjunqin1 <zhangjunqin@jd.com>
This commit is contained in:
chundonglinlin
2021-12-21 08:32:17 +08:00
committed by GitHub
parent c15fadb9d5
commit 3188c772b1

View File

@@ -2516,8 +2516,6 @@ srs_error_t SrsRtcVideoRecvTrack::on_rtp(SrsRtcSource* source, SrsRtpPacket* pkt
{
srs_error_t err = srs_success;
pkt->frame_type = SrsFrameTypeVideo;
pkt->set_avsync_time(cal_avsync_time(pkt->header.get_timestamp()));
if ((err = source->on_rtp(pkt)) != srs_success) {