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:
philipel
2019-03-01 13:53:55 +01:00
committed by Commit Bot
parent 2997ec9a7a
commit d1d0359895
7 changed files with 6 additions and 18 deletions

View File

@ -103,6 +103,7 @@ struct CodecSpecificInfo {
CodecSpecificInfo() : codecType(kVideoCodecGeneric) {
memset(&codecSpecific, 0, sizeof(codecSpecific));
}
VideoCodecType codecType;
CodecSpecificInfoUnion codecSpecific;
};