mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
fix MSVC warning
"warning C4244: '=': conversion from 'const int' to 'float', possible loss of data" Change-Id: Ie0769e50c19efd48332ffeadb026d4538fec9919
This commit is contained in:
parent
6a0ff35872
commit
71690b524e
@ -52,8 +52,8 @@ static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) {
|
|||||||
|
|
||||||
s->is_first = 1;
|
s->is_first = 1;
|
||||||
s->dq = 10.f;
|
s->dq = 10.f;
|
||||||
s->qmin = enc->config_->qmin;
|
s->qmin = 1.f * enc->config_->qmin;
|
||||||
s->qmax = enc->config_->qmax;
|
s->qmax = 1.f * enc->config_->qmax;
|
||||||
s->q = s->last_q = Clamp(enc->config_->quality, s->qmin, s->qmax);
|
s->q = s->last_q = Clamp(enc->config_->quality, s->qmin, s->qmax);
|
||||||
s->target = do_size_search ? (double)target_size
|
s->target = do_size_search ? (double)target_size
|
||||||
: (target_PSNR > 0.) ? target_PSNR
|
: (target_PSNR > 0.) ? target_PSNR
|
||||||
|
Loading…
Reference in New Issue
Block a user