0006-third-party-webrtc.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. diff --git a/audio/utility/channel_mixer.cc b/audio/utility/channel_mixer.cc
  2. index 0f1e663873..8e66f90498 100644
  3. --- a/audio/utility/channel_mixer.cc
  4. +++ b/audio/utility/channel_mixer.cc
  5. @@ -8,6 +8,8 @@
  6. * be found in the AUTHORS file in the root of the source tree.
  7. */
  8. +#include <cstring>
  9. +
  10. #include "audio/utility/channel_mixer.h"
  11. #include "audio/utility/channel_mixing_matrix.h"
  12. diff --git a/common_video/h264/sps_parser.h b/common_video/h264/sps_parser.h
  13. index da328b48b0..719da297a9 100644
  14. --- a/common_video/h264/sps_parser.h
  15. +++ b/common_video/h264/sps_parser.h
  16. @@ -11,6 +11,7 @@
  17. #ifndef COMMON_VIDEO_H264_SPS_PARSER_H_
  18. #define COMMON_VIDEO_H264_SPS_PARSER_H_
  19. +#include <cstdint>
  20. #include "absl/types/optional.h"
  21. #include "rtc_base/bitstream_reader.h"
  22. diff --git a/modules/desktop_capture/differ_block.cc b/modules/desktop_capture/differ_block.cc
  23. index 4f0c5430c9..a89fcc9753 100644
  24. --- a/modules/desktop_capture/differ_block.cc
  25. +++ b/modules/desktop_capture/differ_block.cc
  26. @@ -30,7 +30,7 @@ bool VectorDifference(const uint8_t* image1, const uint8_t* image2) {
  27. static bool (*diff_proc)(const uint8_t*, const uint8_t*) = nullptr;
  28. if (!diff_proc) {
  29. -#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY)
  30. +#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY) || defined(WEBRTC_ARCH_RISCV_FAMILY)
  31. // For ARM and MIPS processors, always use C version.
  32. // TODO(hclam): Implement a NEON version.
  33. diff_proc = &VectorDifference_C;
  34. diff --git a/modules/include/module_common_types_public.h b/modules/include/module_common_types_public.h
  35. index 345e45ce12..8338a51462 100644
  36. --- a/modules/include/module_common_types_public.h
  37. +++ b/modules/include/module_common_types_public.h
  38. @@ -11,6 +11,7 @@
  39. #ifndef MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
  40. #define MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
  41. +#include <cstdint>
  42. #include <limits>
  43. #include "absl/types/optional.h"
  44. diff --git a/modules/video_coding/codecs/av1/BUILD.gn b/modules/video_coding/codecs/av1/BUILD.gn
  45. index 2e4d824821..ab151582a3 100644
  46. --- a/modules/video_coding/codecs/av1/BUILD.gn
  47. +++ b/modules/video_coding/codecs/av1/BUILD.gn
  48. @@ -36,7 +36,6 @@ rtc_library("dav1d_decoder") {
  49. "../../../../api/video_codecs:video_codecs_api",
  50. "../../../../common_video",
  51. "../../../../rtc_base:logging",
  52. - "//third_party/dav1d",
  53. "//third_party/libyuv",
  54. ]
  55. absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
  56. diff --git a/modules/video_coding/utility/ivf_file_reader.cc b/modules/video_coding/utility/ivf_file_reader.cc
  57. index 85d1fa00d7..262b141b93 100644
  58. --- a/modules/video_coding/utility/ivf_file_reader.cc
  59. +++ b/modules/video_coding/utility/ivf_file_reader.cc
  60. @@ -10,6 +10,7 @@
  61. #include "modules/video_coding/utility/ivf_file_reader.h"
  62. +#include <cstring>
  63. #include <string>
  64. #include <vector>
  65. diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
  66. index be2367b85f..dfff855bae 100644
  67. --- a/rtc_base/system/arch.h
  68. +++ b/rtc_base/system/arch.h
  69. @@ -68,9 +68,11 @@
  70. #endif
  71. #define WEBRTC_ARCH_BIG_ENDIAN
  72. #elif defined(__riscv) && __riscv_xlen == 64
  73. +#define WEBRTC_ARCH_RISCV_FAMILY
  74. #define WEBRTC_ARCH_64_BITS
  75. #define WEBRTC_ARCH_LITTLE_ENDIAN
  76. #elif defined(__riscv) && __riscv_xlen == 32
  77. +#define WEBRTC_ARCH_RISCV_FAMILY
  78. #define WEBRTC_ARCH_32_BITS
  79. #define WEBRTC_ARCH_LITTLE_ENDIAN
  80. #elif defined(__pnacl__)