Ignore aud and sei NALus when parsing bitstream.

We currently don't know how to parse these NALus and we don't need
any information from them anyway so we might as well skip parsing them
and not break.

BUG=chromium:697795

Review-Url: https://codereview.webrtc.org/2732623002
Cr-Commit-Position: refs/heads/master@{#17057}
This commit is contained in:
kthelgason 2017-03-06 02:49:36 -08:00 committed by Commit bot
parent 5571ee9465
commit dea7f4f46f

View File

@ -283,6 +283,9 @@ void H264BitstreamParser::ParseSlice(const uint8_t* slice, size_t length) {
LOG(LS_WARNING) << "Unable to parse PPS from H264 bitstream.";
break;
}
case H264::NaluType::kAud:
case H264::NaluType::kSei:
break; // Ignore these nalus, as we don't care about their contents.
default:
Result res = ParseNonParameterSetNalu(slice, length, nalu_type);
if (res != kOk)