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

Unified Diff: webrtc/common_video/h264/h264_common.h

Issue 2728093002: Optimize ParseRbsp method in H264 bitstream parser. (Closed)
Patch Set: return vector to avoid copy 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
Index: webrtc/common_video/h264/h264_common.h
diff --git a/webrtc/common_video/h264/h264_common.h b/webrtc/common_video/h264/h264_common.h
index 99789ee613875d2419a11501779d87a56e0fee79..c63875feb58952e10fe4c0370744066f5db3f608 100644
--- a/webrtc/common_video/h264/h264_common.h
+++ b/webrtc/common_video/h264/h264_common.h
@@ -76,7 +76,7 @@ NaluType ParseNaluType(uint8_t data);
// the 03 emulation byte.
// Parse the given data and remove any emulation byte escaping.
-std::unique_ptr<rtc::Buffer> ParseRbsp(const uint8_t* data, size_t length);
+std::vector<uint8_t> ParseRbsp(const uint8_t* data, size_t length);
// Write the given data to the destination buffer, inserting and emulation
// bytes in order to escape any data the could be interpreted as a start

Powered by Google App Engine
This is Rietveld 408576698