Merge "Fix potential integer overflow."
This commit is contained in:
commit
0f8e8330eb
@ -426,8 +426,8 @@ void vp9_rc_update_rate_correction_factors(VP9_COMP *cpi, int damp_var) {
|
||||
}
|
||||
// Work out a size correction factor.
|
||||
if (projected_size_based_on_q > FRAME_OVERHEAD_BITS)
|
||||
correction_factor = (100 * cpi->rc.projected_frame_size) /
|
||||
projected_size_based_on_q;
|
||||
correction_factor = (int)((100 * (int64_t)cpi->rc.projected_frame_size) /
|
||||
projected_size_based_on_q);
|
||||
|
||||
// More heavily damped adjustment used if we have been oscillating either side
|
||||
// of target.
|
||||
|
Loading…
Reference in New Issue
Block a user