Disable Scudo's mismatch check for media_swcodec

Some third party code is triggering the mismatch allocation check
resulting in the service being terminated. Given that those mismatches
have fairly low security implications and that said code cannot be
immediately fixed, disable the check for now.

Test: media post submit test suite
Bug: 121178348
Change-Id: If9601d719969e590b80ab50c016903fb459c0cdf
(cherry picked from commit 21f0854d4e799f221b5da8105bd9c8bdffaaf15c)
diff --git a/services/mediacodec/main_swcodecservice.cpp b/services/mediacodec/main_swcodecservice.cpp
index 386abb2..79fea25 100644
--- a/services/mediacodec/main_swcodecservice.cpp
+++ b/services/mediacodec/main_swcodecservice.cpp
@@ -37,6 +37,12 @@
 static const char kVendorSeccompPolicyPath[] =
         "/vendor/etc/seccomp_policy/mediacodec.policy";
 
+// Disable Scudo's mismatch allocation check, as it is being triggered
+// by some third party code.
+extern "C" const char *__scudo_default_options() {
+  return "DeallocationTypeMismatch=false";
+}
+
 int main(int argc __unused, char** /*argv*/)
 {
     LOG(INFO) << "media swcodec service starting";