mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00
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 <ssilkin@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Marco Paniconi <marpan@google.com> Cr-Commit-Position: refs/heads/master@{#23482}
This commit is contained in:
parent
b2cf9d38bd
commit
d45b345700
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "modules/video_coding/codecs/vp9/vp9_impl.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
#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<int>::max();
|
||||
for (size_t i = 0; i < num_spatial_layers_; ++i) {
|
||||
svc_drop_frame.framedrop_thresh[i] = config_->rc_dropframe_thresh;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue