Bug 1588233 - P1: Correct the moz-patch for soundtouch. r=padenot
authorChun-Min Chang <chun.m.chang@gmail.com>
Tue, 26 Nov 2019 00:42:34 +0000
changeset 503763 2731c91357d9346249404e00707d1420d9207b23
parent 503762 ae4078ba01fab94fafddee1d6b6e5a998323015d
child 503764 1d46f9bfcab5b4a9101be0d0163d0ca2eefa5c6a
push id36847
push userncsoregi@mozilla.com
push dateTue, 26 Nov 2019 09:34:48 +0000
treeherdermozilla-central@7bc0df30a8a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1588233
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1588233 - P1: Correct the moz-patch for soundtouch. r=padenot Correct the format of the diff for AAFilter.cpp so the update-script can work. Differential Revision: https://phabricator.services.mozilla.com/D49028
media/libsoundtouch/moz-libsoundtouch.patch
--- a/media/libsoundtouch/moz-libsoundtouch.patch
+++ b/media/libsoundtouch/moz-libsoundtouch.patch
@@ -115,31 +115,22 @@ diff -u /src/TDStretch.cpp /src/TDStretc
  {
 +#if defined(SOUNDTOUCH_ALLOW_MMX) || defined(SOUNDTOUCH_ALLOW_SSE)
      uint uExtensions;
  
      uExtensions = detectCPUextensions();
 +#endif
  
      // Check if MMX/SSE instruction set extensions supported by CPU
- 
-diff --git a/media/libsoundtouch/src/AAFilter.cpp b/media/libsoundtouch/src/AAFilter.cpp
---- a/media/libsoundtouch/src/AAFilter.cpp
-+++ b/media/libsoundtouch/src/AAFilter.cpp
-@@ -44,17 +44,17 @@
- #include <assert.h>
- #include <math.h>
- #include <stdlib.h>
- #include "AAFilter.h"
- #include "FIRFilter.h"
+
+diff -u /src/AAFilter.cpp /src/AAFilter.cpp
+--- /src/AAFilter.cpp
++++ /src/AAFilter.cpp
+@@ -42,7 +42,7 @@
  
  using namespace soundtouch;
  
--#define PI        3.141592655357989
+-#define PI       3.14159265358979323846
 +#define PI       M_PI
  #define TWOPI    (2 * PI)
  
  // define this to save AA filter coefficients to a file
- // #define _DEBUG_SAVE_AAFILTER_COEFFICIENTS   1
  
- #ifdef _DEBUG_SAVE_AAFILTER_COEFFICIENTS
-     #include <stdio.h>
-