Fix incorrect index test in GF group rate assignment.

Correct test for middle frame in the group.

Change-Id: I1ee49fa33968eb3c4a01d6a27a60bb1409e3e68c
This commit is contained in:
paulwilkins
2017-07-04 13:21:14 +01:00
parent 7d526c1654
commit b0459ec8ea

View File

@@ -2250,7 +2250,7 @@ static void allocate_gf_group_bits(VP9_COMP *cpi, int64_t gf_group_bits,
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;