projects
/
libvpx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd402e1
)
vp9_encodeframe.c: Silence totalrate assignment warning with a cast.
author
Tom Finegan
<tomfinegan@google.com>
Wed, 19 Feb 2014 02:04:13 +0000
(18:04 -0800)
committer
Tom Finegan
<tomfinegan@google.com>
Thu, 20 Feb 2014 19:53:11 +0000
(11:53 -0800)
Cast result of round() to int.
Change-Id: I4982886ad4e7657b4c40d21bd850d31690a68c28
vp9/encoder/vp9_encodeframe.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_encodeframe.c
b/vp9/encoder/vp9_encodeframe.c
index ce8614639e6ba135ef50623a45019e93bd6983eb..a2430bf7f04561f571fa8904681a7ad7acf12b0f 100644
(file)
--- a/
vp9/encoder/vp9_encodeframe.c
+++ b/
vp9/encoder/vp9_encodeframe.c
@@
-714,7
+714,7
@@
static void rd_pick_sb_modes(VP9_COMP *cpi, const TileInfo *const tile,
x->rdmult = orig_rdmult;
if (*totalrate != INT_MAX) {
vp9_clear_system_state();
- *totalrate = round(*totalrate * rdmult_ratio);
+ *totalrate =
(int)
round(*totalrate * rdmult_ratio);
}
}
else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) {