Index: webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc |
diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc |
index 48ed02ae351443313369e2c4d038e38131a9386b..651406abf91d0c01f5eebaf7adb5bbe7d013e2ea 100644 |
--- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc |
+++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc |
@@ -579,8 +579,11 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst, |
} |
rps_.Init(); |
+ // Disable both high-QP limits and framedropping. Both are handled by libvpx |
+ // internally. |
+ const int kDisabledBadQpThreshold = 64; |
quality_scaler_.Init(codec_.qpMax / QualityScaler::kDefaultLowQpDenominator, |
- false); |
+ kDisabledBadQpThreshold, false); |
quality_scaler_.ReportFramerate(codec_.maxFramerate); |
return InitAndSetControlSettings(); |