diff --git a/modules/video_coding/codecs/vp9/vp9_impl.cc b/modules/video_coding/codecs/vp9/vp9_impl.cc index 1cd45de2b5..874509b6ef 100644 --- a/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -12,6 +12,7 @@ #include "modules/video_coding/codecs/vp9/vp9_impl.h" #include +#include #include #include "vpx/vpx_encoder.h" @@ -506,6 +507,7 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) { vpx_svc_frame_drop_t svc_drop_frame; memset(&svc_drop_frame, 0, sizeof(svc_drop_frame)); svc_drop_frame.framedrop_mode = FULL_SUPERFRAME_DROP; + svc_drop_frame.max_consec_drop = std::numeric_limits::max(); for (size_t i = 0; i < num_spatial_layers_; ++i) { svc_drop_frame.framedrop_thresh[i] = config_->rc_dropframe_thresh; }