From dea7f4f46f3d75eb01bad17537c3df2ce9ec4115 Mon Sep 17 00:00:00 2001 From: kthelgason Date: Mon, 6 Mar 2017 02:49:36 -0800 Subject: [PATCH] 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} --- webrtc/common_video/h264/h264_bitstream_parser.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webrtc/common_video/h264/h264_bitstream_parser.cc b/webrtc/common_video/h264/h264_bitstream_parser.cc index d2e1b97e11..8bc474749d 100644 --- a/webrtc/common_video/h264/h264_bitstream_parser.cc +++ b/webrtc/common_video/h264/h264_bitstream_parser.cc @@ -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)