Nagram/TMessagesProj/jni/patches/libvpx_x86_fix.patch
2022-02-04 15:44:02 +08:00

18 lines
652 B
Diff

Index: vpx_dsp/add_noise.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/vpx_dsp/add_noise.c b/vpx_dsp/add_noise.c
--- a/vpx_dsp/add_noise.c (revision 626ff35955c2c35b806b3e0ecf551a1a8611cdbf)
+++ b/vpx_dsp/add_noise.c (date 1643957537362)
@@ -18,6 +18,8 @@
#include "vpx_dsp/postproc.h"
#include "vpx_ports/mem.h"
+#define rand() ((int)lrand48())
+
void vpx_plane_add_noise_c(uint8_t *start, const int8_t *noise, int blackclamp,
int whiteclamp, int width, int height, int pitch) {
int i, j;