diff options
author | James Zern <jzern@google.com> | 2021-04-28 02:27:54 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-28 02:27:54 +0000 |
commit | 55643371e1c0d64a3137bbc54193f04f65fa03de (patch) | |
tree | 6acf85af36775f6527166d163864f5d7c39f4c1a | |
parent | 9f57bc4d6c7a577538042a49ede8ee98dc8cc300 (diff) | |
parent | adc185feb7b7aabd6407cc41ad1f3c1e9c1e8b17 (diff) | |
download | libvpx-55643371e1c0d64a3137bbc54193f04f65fa03de.tar libvpx-55643371e1c0d64a3137bbc54193f04f65fa03de.tar.gz libvpx-55643371e1c0d64a3137bbc54193f04f65fa03de.tar.bz2 libvpx-55643371e1c0d64a3137bbc54193f04f65fa03de.zip |
Merge "vp8: enc: Fix valid range for under/over_shoot pct"
-rw-r--r-- | vp8/vp8_cx_iface.c | 4 | ||||
-rw-r--r-- | vpx/vpx_encoder.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index 6e12e3898..8d3044f6a 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -152,8 +152,8 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx, RANGE_CHECK_HI(cfg, g_lag_in_frames, 25); #endif RANGE_CHECK(cfg, rc_end_usage, VPX_VBR, VPX_Q); - RANGE_CHECK_HI(cfg, rc_undershoot_pct, 1000); - RANGE_CHECK_HI(cfg, rc_overshoot_pct, 1000); + RANGE_CHECK_HI(cfg, rc_undershoot_pct, 100); + RANGE_CHECK_HI(cfg, rc_overshoot_pct, 100); RANGE_CHECK_HI(cfg, rc_2pass_vbr_bias_pct, 100); RANGE_CHECK(cfg, kf_mode, VPX_KF_DISABLED, VPX_KF_AUTO); diff --git a/vpx/vpx_encoder.h b/vpx/vpx_encoder.h index d62d9ee7e..c4589bea1 100644 --- a/vpx/vpx_encoder.h +++ b/vpx/vpx_encoder.h @@ -498,7 +498,7 @@ typedef struct vpx_codec_enc_cfg { * undershoot level (current rate vs target) beyond which more aggressive * corrective measures are taken. * * - * Valid values in the range VP8:0-1000 VP9: 0-100. + * Valid values in the range VP8:0-100 VP9: 0-100. */ unsigned int rc_undershoot_pct; @@ -513,7 +513,7 @@ typedef struct vpx_codec_enc_cfg { * overshoot level (current rate vs target) beyond which more aggressive * corrective measures are taken. * - * Valid values in the range VP8:0-1000 VP9: 0-100. + * Valid values in the range VP8:0-100 VP9: 0-100. */ unsigned int rc_overshoot_pct; |