Commit da285542 authored by Ghislain MARY's avatar Ghislain MARY

Fix for Android before 5.0: the rand() function is not defined and lrand48()...

Fix for Android before 5.0: the rand() function is not defined and lrand48() needs to be used instead.
parent 49836275
......@@ -18,6 +18,10 @@
#include "vpx_dsp/postproc.h"
#include "vpx_ports/mem.h"
#ifdef __ANDROID__
#define rand lrand48
#endif
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment