Skip to content

Commit

Permalink
Merge "vp9_ratectrl,vp9_resize_one_pass_cbr: rm redundant casts"
Browse files Browse the repository at this point in the history
  • Loading branch information
jzern authored and Gerrit Code Review committed Sep 16, 2020
2 parents 58d02a8 + c211b82 commit aea6312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vp9/encoder/vp9_ratectrl.c
Expand Up @@ -2705,18 +2705,18 @@ int vp9_resize_one_pass_cbr(VP9_COMP *cpi) {
// Force downsize based on per-frame-bandwidth, for extreme case,
// for HD input.
if (cpi->resize_state == ORIG && cm->width * cm->height >= 1280 * 720) {
if (rc->avg_frame_bandwidth < (int)(300000 / 30)) {
if (rc->avg_frame_bandwidth < 300000 / 30) {
resize_action = DOWN_ONEHALF;
cpi->resize_state = ONE_HALF;
force_downsize_rate = 1;
} else if (rc->avg_frame_bandwidth < (int)(400000 / 30)) {
} else if (rc->avg_frame_bandwidth < 400000 / 30) {
resize_action = ONEHALFONLY_RESIZE ? DOWN_ONEHALF : DOWN_THREEFOUR;
cpi->resize_state = ONEHALFONLY_RESIZE ? ONE_HALF : THREE_QUARTER;
force_downsize_rate = 1;
}
} else if (cpi->resize_state == THREE_QUARTER &&
cm->width * cm->height >= 960 * 540) {
if (rc->avg_frame_bandwidth < (int)(300000 / 30)) {
if (rc->avg_frame_bandwidth < 300000 / 30) {
resize_action = DOWN_ONEHALF;
cpi->resize_state = ONE_HALF;
force_downsize_rate = 1;
Expand Down

0 comments on commit aea6312

Please sign in to comment.