From d45b345700f6dc9a24b5f55f7ae01f7a85fbd68e Mon Sep 17 00:00:00 2001 From: Sergey Silkin Date: Thu, 31 May 2018 16:00:24 +0200 Subject: [PATCH] Set max_consec_drop to INT_MAX. Set recently added max_consec_drop parameter to INT_MAX to keep behavior of frame dropping logic unchanged. Bug: none Change-Id: Ie1d4b428cabc7182ed325c7de4ba8a42cdc826b1 Reviewed-on: https://webrtc-review.googlesource.com/79148 Commit-Queue: Sergey Silkin Reviewed-by: Rasmus Brandt Reviewed-by: Marco Paniconi Cr-Commit-Position: refs/heads/master@{#23482} --- modules/video_coding/codecs/vp9/vp9_impl.cc | 2 ++ 1 file changed, 2 insertions(+) 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; }