summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2020-09-16 23:48:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-09-16 23:48:21 +0000
commitaea631263d38e45a7f119d39ccc3dc065db01f08 (patch)
tree7f38ee7962cc7ee554faf284e4b2e215dbca7a3b
parent58d02a85016311406a3b2bd648b1e75d2f844b0e (diff)
parentc211b82d08231a959aee8354e76db179e7dd2139 (diff)
downloadlibvpx-aea631263d38e45a7f119d39ccc3dc065db01f08.tar
libvpx-aea631263d38e45a7f119d39ccc3dc065db01f08.tar.gz
libvpx-aea631263d38e45a7f119d39ccc3dc065db01f08.tar.bz2
libvpx-aea631263d38e45a7f119d39ccc3dc065db01f08.zip
Merge "vp9_ratectrl,vp9_resize_one_pass_cbr: rm redundant casts"
-rw-r--r--vp9/encoder/vp9_ratectrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index 4693309ce..4b87ff2f0 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -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;