shithub: libvpx

Download patch

ref: e3cafbc8df4c5a00de48d971f76ab6c0c246e90c
parent: 24d0391efb748b353834b9ca947f773d2575a8dc
parent: b0459ec8ea3d6aa9f1f355854e1c6886ffab1f92
author: Yaowu Xu <yaowu@google.com>
date: Wed Jul 5 17:43:43 EDT 2017

Merge "Fix incorrect index test in GF group rate assignment."

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2250,7 +2250,7 @@
 
     target_frame_size = (i == (normal_frames - 1))
                             ? last_frame_bits
-                            : (i == mid_frame_idx)
+                            : (frame_index == mid_frame_idx)
                                   ? normal_frame_bits + last_frame_reduction
                                   : normal_frame_bits;