shithub: libvpx

Download patch

ref: fd500f955f3f570e821bd9d494c291572ad3a353
parent: 6382727dc554c85d6478a7d93493542358f4889e
author: Yaowu Xu <yaowu@google.com>
date: Tue May 31 13:06:43 EDT 2016

firstpass.c: fix an UBSAN/IOC error

Change-Id: I579286e6741b689ae4281a35beb7b8f95c3ffce5

--- 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 ) )
             {