diff --git a/patches/remove-undefined-ffmpeg-identifier.patch b/patches/remove-undefined-ffmpeg-identifier.patch new file mode 100644 index 00000000..37ac9a98 --- /dev/null +++ b/patches/remove-undefined-ffmpeg-identifier.patch @@ -0,0 +1,15 @@ +diff --git a/media/filters/ffmpeg_glue.cc b/media/filters/ffmpeg_glue.cc +index 26bb9e8b92614..05143a0130b22 100644 +--- a/media/filters/ffmpeg_glue.cc ++++ b/media/filters/ffmpeg_glue.cc +@@ -109,10 +109,6 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol* protocol) { + // Enable fast, but inaccurate seeks for MP3. + format_context_->flags |= AVFMT_FLAG_FAST_SEEK; + +- // We don't allow H.264 parsing during demuxing since we have our own parser +- // and the ffmpeg one increases memory usage unnecessarily. +- format_context_->flags |= AVFMT_FLAG_NOH264PARSE; +- + // Ensures format parsing errors will bail out. From an audit on 11/2017, all + // instances were real failures. Solves bugs like http://crbug.com/710791. + format_context_->error_recognition |= AV_EF_EXPLODE; diff --git a/patches/use-clang19-cflag.patch b/patches/use-clang19-cflag.patch new file mode 100644 index 00000000..75362b17 --- /dev/null +++ b/patches/use-clang19-cflag.patch @@ -0,0 +1,13 @@ +diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn +index 88109264ea962..ac9f6663f2cf5 100644 +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -1991,7 +1991,7 @@ config("default_warnings") { + cflags_cc += [ "-Wno-dangling-assignment-gsl" ] + + # TODO(crbug.com/376641662): Fix and re-enable. +- cflags += [ "-Wno-nontrivial-memcall" ] ++ cflags += [ "-Wno-nontrivial-memaccess" ] + } + } +