Remove memsets of CodecSpecificInfo.
CodecSpecificInfo has a default constructor, so initializing by memset is not necessary and is in the way of adding non-trivial members. Related chromium CL: https://chromium-review.googlesource.com/c/chromium/src/+/1495533 Bug: webrtc:10342 Change-Id: I36046f919f5fc34ea51de7288ff5c9cc0f2950b8 Reviewed-on: https://webrtc-review.googlesource.com/c/125093 Commit-Queue: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26924}
This commit is contained in:
@ -103,6 +103,7 @@ struct CodecSpecificInfo {
|
||||
CodecSpecificInfo() : codecType(kVideoCodecGeneric) {
|
||||
memset(&codecSpecific, 0, sizeof(codecSpecific));
|
||||
}
|
||||
|
||||
VideoCodecType codecType;
|
||||
CodecSpecificInfoUnion codecSpecific;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user