Fix compilation orders for ext-intra and ec-adapt

Change-Id: I378b677cf579441ba0a9014a8a77a1cf3f8b5689
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index 0fcc981..17887c7 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -4488,20 +4488,20 @@
     for (i = 0; i < PARTITION_TYPES - 1; ++i)
       av1_diff_update_prob(&r, &fc->partition_prob[j][i], ACCT_STR);
 #endif  // CONFIG_EXT_PARTITION_TYPES
+
 #if CONFIG_UNPOISON_PARTITION_CTX
   for (; j < PARTITION_CONTEXTS_PRIMARY + PARTITION_BLOCK_SIZES; ++j)
     av1_diff_update_prob(&r, &fc->partition_prob[j][PARTITION_VERT], ACCT_STR);
   for (; j < PARTITION_CONTEXTS_PRIMARY + 2 * PARTITION_BLOCK_SIZES; ++j)
     av1_diff_update_prob(&r, &fc->partition_prob[j][PARTITION_HORZ], ACCT_STR);
 #endif  // CONFIG_UNPOISON_PARTITION_CTX
-#endif  // CONFIG_EC_ADAPT
-#if CONFIG_EXT_INTRA
-#if CONFIG_INTRA_INTERP
+#endif  // !CONFIG_EC_ADAPT
+
+#if CONFIG_EXT_INTRA && CONFIG_INTRA_INTERP
   for (i = 0; i < INTRA_FILTERS + 1; ++i)
     for (j = 0; j < INTRA_FILTERS - 1; ++j)
       av1_diff_update_prob(&r, &fc->intra_filter_probs[i][j], ACCT_STR);
-#endif  // CONFIG_INTRA_INTERP
-#endif  // EC_ADAPT, DAALA_EC
+#endif  // CONFIG_EXT_INTRA && CONFIG_INTRA_INTERP
 
   if (frame_is_intra_only(cm)) {
     av1_copy(cm->kf_y_prob, av1_kf_y_mode_prob);
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index d2cd5a9..9dce985 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -4567,15 +4567,14 @@
                               ct, probwt);
   }
 #endif
+#endif  // !CONFIG_EC_ADAPT
 
-#if CONFIG_EXT_INTRA
-#if CONFIG_INTRA_INTERP
+#if CONFIG_EXT_INTRA && CONFIG_INTRA_INTERP
   for (i = 0; i < INTRA_FILTERS + 1; ++i)
     prob_diff_update(av1_intra_filter_tree, fc->intra_filter_probs[i],
                      counts->intra_filter[i], INTRA_FILTERS, probwt, header_bc);
-#endif  // CONFIG_INTRA_INTERP
-#endif  // CONFIG_EXT_INTRA
-#endif  // CONFIG_EC_ADAPT, CONFIG_DAALA_EC
+#endif  // CONFIG_EXT_INTRA && CONFIG_INTRA_INTERP
+
   if (frame_is_intra_only(cm)) {
     av1_copy(cm->kf_y_prob, av1_kf_y_mode_prob);
 #if CONFIG_EC_MULTISYMBOL