pvq_encoder.c : float-conversion warning fix Fixes a warning error on gcc 4.9 related to float conversions. Change-Id: I1ba5410d8bff6aff21e2bbe1b4d34740336182cf
diff --git a/av1/encoder/pvq_encoder.c b/av1/encoder/pvq_encoder.c index 2d8340d..3881c98 100644 --- a/av1/encoder/pvq_encoder.c +++ b/av1/encoder/pvq_encoder.c
@@ -55,7 +55,7 @@ static double od_custom_rsqrt_dynamic_table(const double* table, const int table_size, const double start, const int i) { if (i < table_size) return table[i]; - else return od_rsqrt_table(start + 2*i + 1); + else return od_rsqrt_table((int)(start + 2*i + 1)); } /*Fills tables used in od_custom_rsqrt_dynamic_table for a given start.*/ @@ -63,7 +63,7 @@ const double start) { int i; for (i = 0; i < table_size; i++) - table[i] = od_rsqrt_table(start + 2*i + 1); + table[i] = od_rsqrt_table((int)(start + 2*i + 1)); } /** Find the codepoint on the given PSphere closest to the desired