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:
255bcf8
)
Fix a msvc warning
author
Yaowu Xu
<yaowu@google.com>
Tue, 3 Nov 2015 19:22:58 +0000
(11:22 -0800)
committer
Yaowu Xu
<yaowu@google.com>
Tue, 3 Nov 2015 19:22:58 +0000
(11:22 -0800)
Change-Id: Id5b8f597fb275395232559fea7bfeb56912b88a1
vp9/encoder/vp9_noise_estimate.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_noise_estimate.c
b/vp9/encoder/vp9_noise_estimate.c
index
3df3dfc
..
247fe89
100644
(file)
--- a/
vp9/encoder/vp9_noise_estimate.c
+++ b/
vp9/encoder/vp9_noise_estimate.c
@@
-186,7
+186,7
@@
void vp9_update_noise_estimate(VP9_COMP *const cpi) {
// Normalize.
avg_est = (avg_est << 8) / num_samples;
// Update noise estimate.
- ne->value = (
3 * ne->value + avg_est) >> 2
;
+ ne->value = (
int)((3 * ne->value + avg_est) >> 2)
;
ne->count++;
if (ne->count == num_frames_estimate) {
// Reset counter and check noise level condition.