shithub: libvpx

Download patch

ref: b0459ec8ea3d6aa9f1f355854e1c6886ffab1f92
parent: 7d526c1654ed972e4083c89f17fbb8f92782dfb0
author: paulwilkins <paulwilkins@google.com>
date: Tue Jul 4 09:21:14 EDT 2017

Fix incorrect index test in GF group rate assignment.

Correct test for middle frame in the group.

Change-Id: I1ee49fa33968eb3c4a01d6a27a60bb1409e3e68c

--- 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;