From 19ef82268328780c3deb3c5a09369977aa68c975 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Wed, 6 Jun 2018 12:52:45 -0700 Subject: [PATCH] Localize variable scope in vp9_rc_get_second_pass_params() Remove unnecessary definitions. Change-Id: Ie540aaed5f3ed3768eff4e6563455666aef9c9e8 --- vp9/encoder/vp9_firstpass.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index c76dfd351..c347a32ed 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -3040,8 +3040,6 @@ void vp9_rc_get_second_pass_params(VP9_COMP *cpi) { GF_GROUP *const gf_group = &twopass->gf_group; FIRSTPASS_STATS this_frame; - int target_rate; - if (!twopass->stats_in) return; // If this is an arf frame then we dont want to read the stats file or @@ -3149,8 +3147,7 @@ void vp9_rc_get_second_pass_params(VP9_COMP *cpi) { cpi->partition_search_skippable_frame = is_skippable_frame(cpi); } - target_rate = gf_group->bit_allocation[gf_group->index]; - rc->base_frame_target = target_rate; + rc->base_frame_target = gf_group->bit_allocation[gf_group->index]; // The multiplication by 256 reverses a scaling factor of (>> 8) // applied when combining MB error values for the frame. -- 2.40.0