c5da2d
diff -up firefox-102.0/third_party/libwebrtc/common_audio/wav_file.cc.big-endian-errors firefox-102.0/third_party/libwebrtc/common_audio/wav_file.cc
c5da2d
--- firefox-102.0/third_party/libwebrtc/common_audio/wav_file.cc.big-endian-errors	2022-08-17 13:19:53.056891028 +0200
c5da2d
+++ firefox-102.0/third_party/libwebrtc/common_audio/wav_file.cc	2022-08-17 13:19:57.251879556 +0200
c5da2d
@@ -89,9 +89,6 @@ void WavReader::Reset() {
c5da2d
 
c5da2d
 size_t WavReader::ReadSamples(const size_t num_samples,
c5da2d
                               int16_t* const samples) {
c5da2d
-#ifndef WEBRTC_ARCH_LITTLE_ENDIAN
c5da2d
-#error "Need to convert samples to big-endian when reading from WAV file"
c5da2d
-#endif
c5da2d
 
c5da2d
   size_t num_samples_left_to_read = num_samples;
c5da2d
   size_t next_chunk_start = 0;
c5da2d
@@ -129,9 +126,6 @@ size_t WavReader::ReadSamples(const size
c5da2d
 }
c5da2d
 
c5da2d
 size_t WavReader::ReadSamples(const size_t num_samples, float* const samples) {
c5da2d
-#ifndef WEBRTC_ARCH_LITTLE_ENDIAN
c5da2d
-#error "Need to convert samples to big-endian when reading from WAV file"
c5da2d
-#endif
c5da2d
 
c5da2d
   size_t num_samples_left_to_read = num_samples;
c5da2d
   size_t next_chunk_start = 0;
c5da2d
@@ -213,9 +207,6 @@ WavWriter::WavWriter(FileWrapper file,
c5da2d
 }
c5da2d
 
c5da2d
 void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) {
c5da2d
-#ifndef WEBRTC_ARCH_LITTLE_ENDIAN
c5da2d
-#error "Need to convert samples to little-endian when writing to WAV file"
c5da2d
-#endif
c5da2d
 
c5da2d
   for (size_t i = 0; i < num_samples; i += kMaxChunksize) {
c5da2d
     const size_t num_remaining_samples = num_samples - i;
c5da2d
@@ -243,9 +234,6 @@ void WavWriter::WriteSamples(const int16
c5da2d
 }
c5da2d
 
c5da2d
 void WavWriter::WriteSamples(const float* samples, size_t num_samples) {
c5da2d
-#ifndef WEBRTC_ARCH_LITTLE_ENDIAN
c5da2d
-#error "Need to convert samples to little-endian when writing to WAV file"
c5da2d
-#endif
c5da2d
 
c5da2d
   for (size_t i = 0; i < num_samples; i += kMaxChunksize) {
c5da2d
     const size_t num_remaining_samples = num_samples - i;
c5da2d
diff -up firefox-102.0/third_party/libwebrtc/common_audio/wav_header.cc.big-endian-errors firefox-102.0/third_party/libwebrtc/common_audio/wav_header.cc
c5da2d
--- firefox-102.0/third_party/libwebrtc/common_audio/wav_header.cc.big-endian-errors	2022-08-17 13:18:04.688187393 +0200
c5da2d
+++ firefox-102.0/third_party/libwebrtc/common_audio/wav_header.cc	2022-08-17 13:18:22.451138816 +0200
c5da2d
@@ -26,10 +26,6 @@
c5da2d
 namespace webrtc {
c5da2d
 namespace {
c5da2d
 
c5da2d
-#ifndef WEBRTC_ARCH_LITTLE_ENDIAN
c5da2d
-#error "Code not working properly for big endian platforms."
c5da2d
-#endif
c5da2d
-
c5da2d
 #pragma pack(2)
c5da2d
 struct ChunkHeader {
c5da2d
   uint32_t ID;