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:
1387f55
)
Fix ubsan warning: vp8/encoder/onyx_ifc
author
Yaowu Xu
<yaowu@google.com>
Thu, 16 Jun 2016 15:32:18 +0000
(08:32 -0700)
committer
Yaowu Xu
<yaowu@google.com>
Thu, 16 Jun 2016 15:32:18 +0000
(08:32 -0700)
BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1219
Change-Id: I4362a1cf79fdcb478b29ddbcdf8091c5f5d10645
vp8/encoder/onyx_if.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/onyx_if.c
b/vp8/encoder/onyx_if.c
index
66c3f42
..
581db62
100644
(file)
--- a/
vp8/encoder/onyx_if.c
+++ b/
vp8/encoder/onyx_if.c
@@
-5222,7
+5222,7
@@
static void Pass2Encode(VP8_COMP *cpi, unsigned long *size, unsigned char *dest,
vp8_second_pass(cpi);
encode_frame_to_data_rate(cpi, size, dest, dest_end, frame_flags);
- cpi->twopass.bits_left -= 8 *
*size
;
+ cpi->twopass.bits_left -= 8 *
(int)(*size)
;
if (!cpi->common.refresh_alt_ref_frame)
{