summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-05-05 09:44:23 -0700
committerJames Zern <jzern@google.com>2023-05-05 09:46:53 -0700
commit28c5d70650356bf0c60c80d387608047bfdf6e09 (patch)
tree8b5e1db8544df3c76f0bfd58b7cca9f28e50de0f
parent17f1a23f5510111ebc4d0ea99aa302fc392fc810 (diff)
downloadlibvpx-28c5d70650356bf0c60c80d387608047bfdf6e09.tar.gz
vp9_encoder: clear -Wshadow warning
with --enable-experimental --enable-rate-ctrl Bug: webm:1793 Change-Id: I9ca664538bcf0c2aca8aea73283bbb0232eb86e9
-rw-r--r--vp9/encoder/vp9_encoder.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 662ec24b8..5241f5b48 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4443,10 +4443,13 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size, uint8_t *dest
const int orig_rc_max_frame_bandwidth = rc->max_frame_bandwidth;
#if CONFIG_RATE_CTRL
- const FRAME_UPDATE_TYPE update_type =
- cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index];
- const ENCODE_FRAME_TYPE frame_type = get_encode_frame_type(update_type);
- RATE_QSTEP_MODEL *rq_model = &cpi->rq_model[frame_type];
+ RATE_QSTEP_MODEL *rq_model;
+ {
+ const FRAME_UPDATE_TYPE update_type =
+ cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index];
+ const ENCODE_FRAME_TYPE frame_type = get_encode_frame_type(update_type);
+ rq_model = &cpi->rq_model[frame_type];
+ }
init_rq_history(rq_history);
#endif // CONFIG_RATE_CTRL