Make variables const in write_uniform() and read_uniform()
BUG=aomedia:448
Change-Id: Ie02581a20ca12b24d0a5719a1d9220fb20e25ff7
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 59ff277..60b59dc 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -414,7 +414,8 @@
#if CONFIG_EXT_INTRA || CONFIG_FILTER_INTRA || CONFIG_PALETTE
static INLINE int write_uniform_cost(int n, int v) {
- int l = get_unsigned_bits(n), m = (1 << l) - n;
+ const int l = get_unsigned_bits(n);
+ const int m = (1 << l) - n;
if (l == 0) return 0;
if (v < m)
return (l - 1) * av1_cost_bit(128, 0);