From eb68f91a4431247f7a22de7a52f19c3c7247dcea Mon Sep 17 00:00:00 2001 From: AlexeyBarabash Date: Mon, 12 Feb 2018 14:39:40 +0200 Subject: [PATCH] fix for x86 linux ffmpeg issue --- patches/third_party-ffmpeg-BUILD.gn.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/third_party-ffmpeg-BUILD.gn.patch diff --git a/patches/third_party-ffmpeg-BUILD.gn.patch b/patches/third_party-ffmpeg-BUILD.gn.patch new file mode 100644 index 000000000000..ffb2f3661ab3 --- /dev/null +++ b/patches/third_party-ffmpeg-BUILD.gn.patch @@ -0,0 +1,16 @@ +diff --git a/third_party/ffmpeg/BUILD.gn b/third_party/ffmpeg/BUILD.gn +index 01535c488ba6e6a86b9e4d4cd0fd654f18d9701b..518c3e5e455795f07ac1e818b9bb29cafc4b93c3 100755 +--- a/third_party/ffmpeg/BUILD.gn ++++ b/third_party/ffmpeg/BUILD.gn +@@ -247,11 +247,9 @@ target(link_target_type, "ffmpeg_internal") { + # 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" ] +- } + } + + if (!is_clang) {