ref: 100dfc9eab6547cc65066143f949893419d7dbb4
parent: bacc67f4a808e488d24fda2e93cfd5fbe0b806a4
parent: fd500f955f3f570e821bd9d494c291572ad3a353
author: Yaowu Xu <[email protected]>
date: Thu Jun 2 12:20:06 EDT 2016
Merge "firstpass.c: fix an UBSAN/IOC error"
--- a/vp8/encoder/firstpass.c
+++ b/vp8/encoder/firstpass.c
@@ -2808,7 +2808,8 @@
* static scene.
*/
if ( detect_transition_to_still( cpi, i,
- (cpi->key_frame_frequency-i),
+ ((int)(cpi->key_frame_frequency) -
+ (int)i),
loop_decay_rate,
decay_accumulator ) )
{