Index: source/libvpx/vpx_ports/x86_abi_support.asm |
=================================================================== |
--- source/libvpx/vpx_ports/x86_abi_support.asm (revision 278778) |
+++ source/libvpx/vpx_ports/x86_abi_support.asm (working copy) |
@@ -393,3 +393,14 @@ |
section .text |
%endif |
+; On Android platforms use lrand48 when building postproc routines. Prior to L |
+; rand() was not available. |
+%if CONFIG_POSTPROC=1 |
+%ifdef __ANDROID__ |
+extern sym(lrand48) |
+%define LIBVPX_RAND lrand48 |
+%else |
+extern sym(rand) |
+%define LIBVPX_RAND rand |
+%endif |
+%endif ; CONFIG_POSTPROC |