"${FILESDIR}/chromium-stdint.patch"
"${FILESDIR}/chromium-ffmpeg-r1.patch"
"${FILESDIR}/chromium-ffmpeg-clang.patch"
+ "${FILESDIR}/chromium-ffmpeg-ebp-r0.patch"
)
pre_build_checks() {
"${FILESDIR}/chromium-libjpeg-r0.patch"
"${FILESDIR}/chromium-cors-string-r0.patch"
"${FILESDIR}/chromium-libwebp-shim-r0.patch"
+ "${FILESDIR}/chromium-ffmpeg-ebp-r1.patch"
)
pre_build_checks() {
"${FILESDIR}/chromium-memcpy-r0.patch"
"${FILESDIR}/chromium-math.h-r0.patch"
"${FILESDIR}/chromium-stdint.patch"
+ "${FILESDIR}/chromium-ffmpeg-ebp-r0.patch"
)
pre_build_checks() {
--- /dev/null
+https://bugs.chromium.org/p/chromium/issues/detail?id=796379
+https://bugs.gentoo.org/656902
+
+--- a/third_party/ffmpeg/BUILD.gn
+--- b/third_party/ffmpeg/BUILD.gn
+@@ -247,11 +247,7 @@
+ # On POSIX x86, sanitizers will fail to compiler the H264 CABAC code due to
+ # insufficient registers unless we disable EBP usage. crbug.com/786760
+ if (target_cpu == "x86") {
+- if (using_sanitizer) {
+- defines += [ "HAVE_EBP_AVAILABLE=0" ]
+- } else {
+- defines += [ "HAVE_EBP_AVAILABLE=1" ]
+- }
++ defines += [ "HAVE_EBP_AVAILABLE=0" ]
+ }
+
+ if (!is_clang) {
--- /dev/null
+https://bugs.chromium.org/p/chromium/issues/detail?id=796379
+https://bugs.gentoo.org/656902
+
+--- a/third_party/ffmpeg/BUILD.gn
+--- b/third_party/ffmpeg/BUILD.gn
+@@ -239,11 +239,7 @@
+ # Windows builds can't compile without EBP because we can't omit frame
+ # pointers like we do on posix.
+ if (target_cpu == "x86") {
+- if (using_sanitizer || is_win) {
+- defines += [ "HAVE_EBP_AVAILABLE=0" ]
+- } else {
+- defines += [ "HAVE_EBP_AVAILABLE=1" ]
+- }
++ defines += [ "HAVE_EBP_AVAILABLE=0" ]
+ }
+
+ if (is_posix || is_fuchsia) {