Commit 42350322 authored by Yaowu Xu's avatar Yaowu Xu

Change to use correct type for token_cost

The conversion of return value to int64_t appears to be unnecessary.

fixes a number of type conversion warnings for MSVC2015

Change-Id: Ibca24468e73bf22ad07c469ce5d1223635390ecb
parent 1e4e5b96
......@@ -125,9 +125,9 @@ static const int plane_rd_mult[REF_TYPES][PLANE_TYPES] = {
rd_cost1 = RDCOST(rdmult, rddiv, rate1, error1); \
}
static INLINE int64_t
get_token_bit_costs(unsigned int token_costs[2][COEFF_CONTEXTS][ENTROPY_TOKENS],
int skip_eob, int ctx, int token) {
static INLINE unsigned int get_token_bit_costs(
unsigned int token_costs[2][COEFF_CONTEXTS][ENTROPY_TOKENS], int skip_eob,
int ctx, int token) {
#if CONFIG_NEW_TOKENSET
(void)skip_eob;
return token_costs[token == ZERO_TOKEN || token == EOB_TOKEN][ctx][token];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment