resample: fix UINT32_MAX fallback bugfix/resampler-uint v0.2
authorTristan Matthews <tmatth@videolan.org>
Fri, 14 Sep 2018 23:15:33 +0000 (19:15 -0400)
committerTristan Matthews <tmatth@videolan.org>
Fri, 14 Sep 2018 23:45:06 +0000 (19:45 -0400)
Reported by Mark Harris

(cherry picked from commit 7181b9e84fbf6887c74807af5ad0030a5181640a)

src/resample.c

index bad10d6..0433827 100644 (file)
@@ -93,7 +93,7 @@ static void speex_free(void *ptr) {free(ptr);}
 #endif
 
 #ifndef UINT32_MAX
-#define UINT32_MAX 4294967296U
+#define UINT32_MAX 4294967295U
 #endif
 
 #if defined(__SSE__) && !defined(FIXED_POINT)