From 0c2e8ce212f372c3df41230d0843447d72848846 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Fri, 25 May 2018 22:26:43 -0700 Subject: [PATCH] Initialize svc_drop_frame in vp9 wrapper. Thus we don't need to initialize new members added to the structure in the future. Bug: None Change-Id: Id9f5b127c224660f3016973261045b4231a617c1 Reviewed-on: https://webrtc-review.googlesource.com/79080 Reviewed-by: Sergey Silkin Reviewed-by: Rasmus Brandt Commit-Queue: Rasmus Brandt Cr-Commit-Position: refs/heads/master@{#23404} --- modules/video_coding/codecs/vp9/vp9_impl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video_coding/codecs/vp9/vp9_impl.cc b/modules/video_coding/codecs/vp9/vp9_impl.cc index 226d16260f..366038b52f 100644 --- a/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -505,6 +505,7 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) { // or not dropping upper layers if base is not dropped mitigates // the problem. vpx_svc_frame_drop_t svc_drop_frame; + memset(&svc_drop_frame, 0, sizeof(svc_drop_frame)); svc_drop_frame.framedrop_mode = CONSTRAINED_LAYER_DROP; for (size_t i = 0; i < num_spatial_layers_; ++i) { svc_drop_frame.framedrop_thresh[i] =