Resolve some static analysis warnings in ext-intra

Change-Id: I873d2336a4d41f59ed9336e5df3cb41d023f75f4
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index f02cf50..eeeb91a 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -3296,7 +3296,7 @@
   const int intra_filter_ctx = av1_get_pred_context_intra_interp(xd);
   INTRA_FILTER filter, best_filter = INTRA_FILTER_LINEAR;
 #endif  // CONFIG_INTRA_INTERP
-  int64_t this_rd, best_rd_in, rd_cost[16];
+  int64_t this_rd, best_rd_in, rd_cost[2 * (MAX_ANGLE_DELTA + 2)];
   TX_SIZE best_tx_size = mic->mbmi.tx_size;
   TX_TYPE best_tx_type = mbmi->tx_type;