mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Eliminate duplicate assignment for video packet frame type (#2803)
Co-authored-by: zhangjunqin1 <zhangjunqin@jd.com>
This commit is contained in:
parent
c15fadb9d5
commit
3188c772b1
1 changed files with 0 additions and 2 deletions
|
@ -2516,8 +2516,6 @@ srs_error_t SrsRtcVideoRecvTrack::on_rtp(SrsRtcSource* source, SrsRtpPacket* pkt
|
||||||
{
|
{
|
||||||
srs_error_t err = srs_success;
|
srs_error_t err = srs_success;
|
||||||
|
|
||||||
pkt->frame_type = SrsFrameTypeVideo;
|
|
||||||
|
|
||||||
pkt->set_avsync_time(cal_avsync_time(pkt->header.get_timestamp()));
|
pkt->set_avsync_time(cal_avsync_time(pkt->header.get_timestamp()));
|
||||||
|
|
||||||
if ((err = source->on_rtp(pkt)) != srs_success) {
|
if ((err = source->on_rtp(pkt)) != srs_success) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue