commit | d1d0359895d401f9f2ae54cedff9a07367b011ef | [log] [tgz] |
---|---|---|
author | philipel <philipel@webrtc.org> | Fri Mar 01 13:53:55 2019 +0100 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 01 13:30:56 2019 +0000 |
tree | 715492e049b289580768958cc65ee2ea6ea93c46 | |
parent | 2997ec9a7a46505658b9f15b8a4c55bf59a3e965 [diff] [blame] |
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}
diff --git a/modules/video_coding/include/video_codec_interface.h b/modules/video_coding/include/video_codec_interface.h index 0a6c12d..cde5512 100644 --- a/modules/video_coding/include/video_codec_interface.h +++ b/modules/video_coding/include/video_codec_interface.h
@@ -103,6 +103,7 @@ CodecSpecificInfo() : codecType(kVideoCodecGeneric) { memset(&codecSpecific, 0, sizeof(codecSpecific)); } + VideoCodecType codecType; CodecSpecificInfoUnion codecSpecific; };