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/codecs/vp9/vp9_impl.cc b/modules/video_coding/codecs/vp9/vp9_impl.cc
index 50aea48..09b17db 100644
--- a/modules/video_coding/codecs/vp9/vp9_impl.cc
+++ b/modules/video_coding/codecs/vp9/vp9_impl.cc
@@ -174,7 +174,7 @@
       first_frame_in_picture_(true),
       ss_info_needed_(false),
       is_flexible_mode_(false) {
-  memset(&codec_, 0, sizeof(codec_));
+  codec_ = {};
   memset(&svc_params_, 0, sizeof(vpx_svc_extra_cfg_t));
 }
 
@@ -1279,7 +1279,7 @@
   }
   RTC_DCHECK_LE(encoded_image_.size(), encoded_image_.capacity());
 
-  memset(&codec_specific_, 0, sizeof(codec_specific_));
+  codec_specific_ = {};
   absl::optional<int> spatial_index;
   PopulateCodecSpecific(&codec_specific_, &spatial_index, *pkt,
                         input_image_->timestamp());
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;
 };