Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 19199df

Browse files
authored
Identify keyframe packets for FEC protection (#104)
There is code to set different protection levels for keyframes vs. delta frames, but because this set_is_key_frame was never called, the distinction was never used.
1 parent 014d290 commit 19199df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/rtp_rtcp/source/rtp_sender_video.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ bool RTPSenderVideo::SendVideo(
619619

620620
packet->set_allow_retransmission(allow_retransmission);
621621

622+
packet->set_is_key_frame(video_header.frame_type == VideoFrameType::kVideoFrameKey);
623+
622624
// Put packetization finish timestamp into extension.
623625
if (packet->HasExtension<VideoTimingExtension>()) {
624626
packet->set_packetization_finish_time_ms(clock_->TimeInMilliseconds());

0 commit comments

Comments
 (0)