projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6382727
)
firstpass.c: fix an UBSAN/IOC error
author
Yaowu Xu
<yaowu@google.com>
Wed, 1 Jun 2016 00:06:43 +0000
(17:06 -0700)
committer
Yaowu Xu
<yaowu@google.com>
Thu, 2 Jun 2016 00:31:32 +0000
(
00:31
+0000)
Change-Id: I579286e6741b689ae4281a35beb7b8f95c3ffce5
vp8/encoder/firstpass.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/firstpass.c
b/vp8/encoder/firstpass.c
index
4c2acc7
..
95bb394
100644
(file)
--- a/
vp8/encoder/firstpass.c
+++ b/
vp8/encoder/firstpass.c
@@
-2808,7
+2808,8
@@
static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
* 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 ) )
{