diff --git a/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc b/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc index 5d631b504d..e190ea2f6a 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc @@ -551,9 +551,7 @@ bool RtpDepacketizerH264::ProcessStapAOrSingleNalu( case H264::NaluType::kEndOfSequence: case H264::NaluType::kEndOfStream: case H264::NaluType::kFiller: - break; case H264::NaluType::kSei: - parsed_payload->frame_type = kVideoFrameKey; break; case H264::NaluType::kStapA: case H264::NaluType::kFuA: diff --git a/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc index 22f050b8d0..1f926d9eeb 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc @@ -893,6 +893,7 @@ TEST_F(RtpDepacketizerH264Test, TestSeiPacket) { RtpDepacketizer::ParsedPayload payload; ASSERT_TRUE(depacketizer_->Parse(&payload, kPayload, sizeof(kPayload))); const RTPVideoHeaderH264& h264 = payload.type.Video.codecHeader.H264; + EXPECT_EQ(kVideoFrameDelta, payload.frame_type); EXPECT_EQ(kH264SingleNalu, h264.packetization_type); EXPECT_EQ(kSei, h264.nalu_type); ASSERT_EQ(1u, h264.nalus_length);