Fix bug with wedge mode and II_ML modes
Change-Id: I878bb042402cee11833ec912ef8b0ddc8042f4d6
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 623e964..a0abb9a 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -10941,7 +10941,8 @@
const int_mv mv0 = mbmi->mv[0];
#if CONFIG_INTERINTRA_ML
const int is_wedge_used =
- is_interintra_ml_supported(&x->e_mbd, /*wedge=*/false);
+ !is_interintra_ml_supported(&x->e_mbd, /*wedge=*/false) &&
+ is_interintra_wedge_used(bsize);
#else
const int is_wedge_used = is_interintra_wedge_used(bsize);
#endif // CONFIG_INTERINTRA_ML