Fix inter block detection in get_tx_size_context()

In the decoder, the function get_tx_size_context() is called
by read_selected_tx_size(), *before* mbmi->ref_frame is set up.
This means that mbmi->ref_frame still holds the ref frames from
the previous block, and does not indicate if the current block is
inter or not.

Fortunately, all of the other functions called by read_selected_tx_size()
have an explicit "is_inter" parameter, which is set correctly.
So we can just plumb this through into get_tx_size_context().

Change-Id: I00f0f3704937f592ccc5d304ed20ee25196dd520
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 59725d0..3218c44 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -2125,7 +2125,7 @@
     const int is_inter = is_inter_block(mbmi);
     const int32_t tx_size_cat = bsize_to_tx_size_cat(bsize, is_inter);
     const int depth = tx_size_to_depth(tx_size, bsize, is_inter);
-    const int tx_size_ctx = get_tx_size_context(xd);
+    const int tx_size_ctx = get_tx_size_context(xd, is_inter);
     int r_tx_size = x->tx_size_cost[tx_size_cat][tx_size_ctx][depth];
     return r_tx_size;
   } else {