History

Merge "vp8: enc: Fix valid range for under/over_shoot pct"

James Zern committed 5 years ago

Commit 55643372 parents 9f57bc4 adc185f2 files · +4 −4Browse files

Unified · Split

2 files
  1. vp8/vp8_cx_iface.c +2 −2
  2. vpx/vpx_encoder.h +2 −2
vp8/vp8_cx_iface.c+2−2
@@ -152,8 +152,8 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx, · 151 unmodified lines
152152 RANGE_CHECK_HI(cfg, g_lag_in_frames, 25);
153153 #endif
154154 RANGE_CHECK(cfg, rc_end_usage, VPX_VBR, VPX_Q);
155− RANGE_CHECK_HI(cfg, rc_undershoot_pct, 1000);
156− RANGE_CHECK_HI(cfg, rc_overshoot_pct, 1000);
155+ RANGE_CHECK_HI(cfg, rc_undershoot_pct, 100);
156+ RANGE_CHECK_HI(cfg, rc_overshoot_pct, 100);
157157 RANGE_CHECK_HI(cfg, rc_2pass_vbr_bias_pct, 100);
158158 RANGE_CHECK(cfg, kf_mode, VPX_KF_DISABLED, VPX_KF_AUTO);
159159
vpx/vpx_encoder.h+2−2
@@ -498,7 +498,7 @@ typedef struct vpx_codec_enc_cfg { · 497 unmodified lines
498498 * undershoot level (current rate vs target) beyond which more aggressive
499499 * corrective measures are taken.
500500 * *
501− * Valid values in the range VP8:0-1000 VP9: 0-100.
501+ * Valid values in the range VP8:0-100 VP9: 0-100.
502502 */
503503 unsigned int rc_undershoot_pct;
504504
@@ -513,7 +513,7 @@ typedef struct vpx_codec_enc_cfg { · 8 unmodified lines
513513 * overshoot level (current rate vs target) beyond which more aggressive
514514 * corrective measures are taken.
515515 *
516− * Valid values in the range VP8:0-1000 VP9: 0-100.
516+ * Valid values in the range VP8:0-100 VP9: 0-100.
517517 */
518518 unsigned int rc_overshoot_pct;
519519

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t