this fixes runtime errors with clang -fsanitize=integer in x86 builds:
../vp9/encoder/vp9_rdopt.c:3250:17: runtime error: signed integer
overflow: 18 - -
2147483648 cannot be represented in type 'int'
../vp9/encoder/vp9_rdopt.c:3277:16: runtime error: signed integer
overflow: 26 - -
2147483648 cannot be represented in type 'int'
Bug: b/
229626362
Change-Id: Ic9a5063c840b4fce7056f61362234721add056a6
// For two pass account for any formatting bars detected.
if (cpi->oxcf.pass == 2) {
TWO_PASS *twopass = &cpi->twopass;
+ vpx_clear_system_state();
// The inactive region is specified in MBs not mi units.
// The image edge is in the following MB row.
// For two pass account for any formatting bars detected.
if (cpi->oxcf.pass == 2) {
TWO_PASS *twopass = &cpi->twopass;
+ vpx_clear_system_state();
// The inactive region is specified in MBs not mi units.
// The image edge is in the following MB row.