Silence some (more) Visual Studio warnings.

Change-Id: Idac44feac894ab13630e032222c4744d6fa785df
This commit is contained in:
James Zern 2011-08-29 18:03:31 -07:00
parent 60306e8cf3
commit 7c43663036
2 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ void (*VP8TransformWHT)(const int16_t* in, int16_t* out) = TransformWHT;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Intra predictions // Intra predictions
#undef OUT
#define OUT(x, y) dst[(x) + (y) * BPS] #define OUT(x, y) dst[(x) + (y) * BPS]
static inline void TrueMotion(uint8_t *dst, int size) { static inline void TrueMotion(uint8_t *dst, int size) {

View File

@ -492,7 +492,7 @@ static void ExportRow(WebPRescaler* const wrk) {
assert(wrk->y_accum <= 0); assert(wrk->y_accum <= 0);
for (x_out = 0; x_out < wrk->dst_width; ++x_out) { for (x_out = 0; x_out < wrk->dst_width; ++x_out) {
const int frac = MULT(wrk->frow[x_out], yscale); const int frac = MULT(wrk->frow[x_out], yscale);
const int v = MULT(wrk->irow[x_out] - frac, wrk->fxy_scale); const int v = (int)MULT(wrk->irow[x_out] - frac, wrk->fxy_scale);
wrk->dst[x_out] = (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255; wrk->dst[x_out] = (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
wrk->irow[x_out] = frac; // new fractional start wrk->irow[x_out] = frac; // new fractional start
} }