fix conversion warning on MSVC
"src\enc\frame.c(88) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data" Change-Id: I143cb0bb6b69e1b8befe9b4f24b71adbc28095c2
This commit is contained in:
parent
d538cea8c2
commit
d134307b7f
@ -85,7 +85,7 @@ static float ComputeNextQ(PassStats* const s) {
|
||||
s->is_first = 0;
|
||||
} else if (s->value != s->last_value) {
|
||||
const double slope = (s->target - s->value) / (s->last_value - s->value);
|
||||
dq = slope * (s->last_q - s->q);
|
||||
dq = (float)(slope * (s->last_q - s->q));
|
||||
} else {
|
||||
dq = 0.; // we're done?!
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user