libaac: disable compiler optimization
Disable compiler optimization to avoid error in WFD source aac encoding.
Change-Id: I725a73c6c4f572d8f07e2aeb88292b85d68aa153
diff --git a/libaac/Android.mk b/libaac/Android.mk
index 7f58414..38551d0 100644
--- a/libaac/Android.mk
+++ b/libaac/Android.mk
@@ -14,6 +14,7 @@
LOCAL_32_BIT_ONLY := true
LOCAL_MODULE := libwfdaac
+LOCAL_CFLAGS += -O0
LOCAL_SANITIZE := integer_overflow
include $(BUILD_SHARED_LIBRARY)
@@ -37,6 +38,7 @@
LOCAL_32_BIT_ONLY := true
LOCAL_MODULE := libwfdaac_vendor
+LOCAL_CFLAGS += -O0
LOCAL_SANITIZE := integer_overflow
include $(BUILD_SHARED_LIBRARY)