Skip to content

Commit

Permalink
fix MSVC warning
Browse files Browse the repository at this point in the history
  "warning C4244: '=': conversion from 'const int' to 'float', possible loss of data"

Change-Id: Ie0769e50c19efd48332ffeadb026d4538fec9919
  • Loading branch information
Skal committed Jan 30, 2020
1 parent 6a0ff35 commit 71690b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enc/frame_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) {

s->is_first = 1;
s->dq = 10.f;
s->qmin = enc->config_->qmin;
s->qmax = enc->config_->qmax;
s->qmin = 1.f * enc->config_->qmin;
s->qmax = 1.f * enc->config_->qmax;
s->q = s->last_q = Clamp(enc->config_->quality, s->qmin, s->qmax);
s->target = do_size_search ? (double)target_size
: (target_PSNR > 0.) ? target_PSNR
Expand Down

0 comments on commit 71690b5

Please sign in to comment.