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

Unified Diff: webrtc/common_types.cc

Issue 2001533003: Refactoring: Hide VideoCodec.codecSpecific as "private" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: More zeroes Created 4 years, 7 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_types.cc
diff --git a/webrtc/common_types.cc b/webrtc/common_types.cc
index 7b99f3c5a83859d17a6891b99c49dc4d218808ee..7e8d11a32c702ae1b3788bbdac6569b5b679b1b4 100644
--- a/webrtc/common_types.cc
+++ b/webrtc/common_types.cc
@@ -48,4 +48,23 @@ RTPHeader::RTPHeader()
memset(&arrOfCSRCs, 0, sizeof(arrOfCSRCs));
}
+VideoCodec::VideoCodec()
+ : codecType(kVideoCodecUnknown),
+ plName(""),
hta-webrtc 2016/05/20 12:11:31 BTW, plName is a 16-character array. The Android c
tommi 2016/05/21 11:17:08 try plName(),
hta-webrtc 2016/05/23 13:30:16 Done.
+ plType(0),
+ width(0),
+ height(0),
+ startBitrate(0),
+ maxBitrate(0),
+ minBitrate(0),
+ targetBitrate(0),
+ maxFramerate(0),
+ qpMax(0),
+ numberOfSimulcastStreams(0),
+ mode(kRealtimeVideo) {
+ memset(&simulcastStream, 0, sizeof(simulcastStream));
tommi 2016/05/20 11:34:55 initialize these in the initializer list instead o
hta-webrtc 2016/05/20 12:11:31 All of these are arrays. Is there a good way to in
tommi 2016/05/21 11:17:07 Same here. Try: simulcastStream(), spatialLayers(
hta-webrtc 2016/05/23 13:30:16 Done.
+ memset(&spatialLayers, 0, sizeof(spatialLayers));
+ memset(&codecSpecific_, 0, sizeof(codecSpecific_));
+}
+
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698