From 0f0a849cba51ae68e508c04f4abac9e36fbbeb05 Mon Sep 17 00:00:00 2001 From: philipel Date: Wed, 29 Mar 2017 02:19:54 -0700 Subject: [PATCH] H264 Supplemental Enhancement Information no longer considered a keyframe. BUG=none Review-Url: https://codereview.webrtc.org/2769863007 Cr-Commit-Position: refs/heads/master@{#17435} --- webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc | 2 -- webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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);