~george-edison55/libwebp/old-trunk

« back to all changes in this revision

Viewing changes to src/enc/picture.c

  • Committer: Mikolaj Zalewski
  • Date: 2011-08-29 08:37:13 UTC
  • Revision ID: git-v1:2aa6b80efec40820f78c00706499c6c0133969ed
Slience some Visual Studio warnings.

Change-Id: I62078af80bfcaa82bdc165fc2fc8fce2d2aad862

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
  int x_out;
269
269
  for (x_out = 0; x_out < dst_width; ++x_out) {
270
270
    const int frac = MULT(frow[x_out], yscale);
271
 
    const int v = MULT(irow[x_out] - frac, fxy_scale);
 
271
    const int v = (int)(MULT(irow[x_out] - frac, fxy_scale));
272
272
    dst[x_out] = (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
273
273
    irow[x_out] = frac;   // new fractional start
274
274
  }