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:
Pascal Massimino 2013-09-12 05:26:01 -07:00 committed by James Zern
parent d538cea8c2
commit d134307b7f

View File

@ -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?!
}