diff --git a/vp8/decoder/dboolhuff.c b/vp8/decoder/dboolhuff.c index 546fb2d217f61f884a104ecb5743ce6aab80df68..0007d7a7a3e36b21721897f0c6011e34071a8206 100644 --- a/vp8/decoder/dboolhuff.c +++ b/vp8/decoder/dboolhuff.c @@ -47,8 +47,8 @@ void vp8dx_bool_decoder_fill(BOOL_DECODER *br) unsigned char decrypted[sizeof(VP8_BD_VALUE) + 1]; if (br->decrypt_cb) { - int n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left; - br->decrypt_cb(br->decrypt_state, bufptr, decrypted, n); + size_t n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left; + br->decrypt_cb(br->decrypt_state, bufptr, decrypted, (int)n); bufptr = decrypted; }