Don't crash on unexpected stap-a or fu-a.

BUG=chromium:655091

Review-Url: https://codereview.webrtc.org/2406363004
Cr-Commit-Position: refs/heads/master@{#14618}
This commit is contained in:
stefan
2016-10-12 15:30:14 -07:00
committed by Commit bot
parent 75c8fb4b2c
commit 12a39f4100

View File

@ -529,7 +529,8 @@ bool RtpDepacketizerH264::ProcessStapAOrSingleNalu(
break;
case H264::NaluType::kStapA:
case H264::NaluType::kFuA:
RTC_NOTREACHED();
LOG(LS_WARNING) << "Unexpected STAP-A or FU-A received.";
return false;
}
RTPVideoHeaderH264* h264 = &parsed_payload->type.Video.codecHeader.H264;
if (h264->nalus_length == kMaxNalusPerPacket) {