Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: webrtc/common_video/h264/h264_bitstream_parser.cc

Issue 2732623002: Ignore aud and sei NALus when parsing bitstream. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/h264/h264_bitstream_parser.cc
diff --git a/webrtc/common_video/h264/h264_bitstream_parser.cc b/webrtc/common_video/h264/h264_bitstream_parser.cc
index 4ad0ed4b283dcbf22b29f359dfcdcd5b73732214..85caa8c5a5d66d47dfc4d14e8d43f4bfc54277d7 100644
--- a/webrtc/common_video/h264/h264_bitstream_parser.cc
+++ b/webrtc/common_video/h264/h264_bitstream_parser.cc
@@ -284,6 +284,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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698