ref: 4446af78f0f7881fbc8815aefebf3ab757c74d26
parent: 25686fc22d16fecb11313eb16471def1bacd3513
parent: b2fc3ca0669170874df84c4fda8347ce693826e2
author: James Zern <jzern@google.com>
date: Tue Feb 26 11:27:45 EST 2013
Merge "vp9: promote gf_group_bits calculation to 64-bit" into experimental
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -1663,8 +1663,9 @@
// Clip cpi->twopass.gf_group_bits based on user supplied data rate
// variability limit (cpi->oxcf.two_pass_vbrmax_section)
- if (cpi->twopass.gf_group_bits > max_bits * cpi->baseline_gf_interval)
- cpi->twopass.gf_group_bits = max_bits * cpi->baseline_gf_interval;
+ if (cpi->twopass.gf_group_bits >
+ (int64_t)max_bits * cpi->baseline_gf_interval)
+ cpi->twopass.gf_group_bits = (int64_t)max_bits * cpi->baseline_gf_interval;
// Reset the file position
reset_fpf_position(cpi, start_pos);
--
⑨