Merge 7c990fd5ca11115867a4c1d9661965e4ebf84fff on remote branch
Change-Id: I28c822a786eefcb16408ca6170e93f64d281624e
diff --git a/Android.bp b/Android.bp
index 29db745..448ebb6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1148,6 +1148,7 @@
// cfi: true,
blacklist: "libvpx_blacklist.txt",
},
+ min_sdk_version: "29",
}
cc_fuzz {
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 86b6de3..ecf8b8e 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,2 +1,2 @@
[Hook Scripts]
-mainline_hook = ${REPO_ROOT}/frameworks/av/tools/mainline_hook.sh
+mainline_hook = ${REPO_ROOT}/frameworks/av/tools/mainline_hook_project.sh
diff --git a/libvpx/vp8/encoder/onyx_if.c b/libvpx/vp8/encoder/onyx_if.c
index 3f5b981..dccc6eb 100644
--- a/libvpx/vp8/encoder/onyx_if.c
+++ b/libvpx/vp8/encoder/onyx_if.c
@@ -4533,9 +4533,11 @@
/* Actual bits spent */
cpi->total_actual_bits += cpi->projected_frame_size;
+#if 0 && CONFIG_INTERNAL_STATS
/* Debug stats */
cpi->total_target_vs_actual +=
(cpi->this_frame_target - cpi->projected_frame_size);
+#endif
cpi->buffer_level = cpi->bits_off_target;
diff --git a/libvpx/vp8/encoder/treewriter.h b/libvpx/vp8/encoder/treewriter.h
index c02683a..4e9ed6a 100644
--- a/libvpx/vp8/encoder/treewriter.h
+++ b/libvpx/vp8/encoder/treewriter.h
@@ -14,6 +14,8 @@
/* Trees map alphabets into huffman-like codes suitable for an arithmetic
bit coder. Timothy S Murphy 11 October 2004 */
+#include <stdint.h>
+
#include "./vpx_config.h"
#include "vp8/common/treecoder.h"
@@ -48,7 +50,9 @@
vp8_prob p) {
/* Imitate existing calculation */
- return ((ct[0] * vp8_cost_zero(p)) + (ct[1] * vp8_cost_one(p))) >> 8;
+ return (unsigned int)(((((uint64_t)ct[0]) * vp8_cost_zero(p)) +
+ (((uint64_t)ct[1]) * vp8_cost_one(p))) >>
+ 8);
}
/* Small functions to write explicit values and tokens, as well as
diff --git a/libwebm/Android.bp b/libwebm/Android.bp
index 0beefc8..6141b10 100644
--- a/libwebm/Android.bp
+++ b/libwebm/Android.bp
@@ -1,10 +1,14 @@
cc_library_static {
name: "libwebm",
srcs: ["mkvparser/mkvparser.cc"],
- cflags: ["-Wall", "-Werror"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ ],
export_include_dirs: ["."],
sanitize: {
// Enable CFI if this becomes a shared library.
// cfi: true,
},
+ min_sdk_version: "29",
}