diff --git a/vp9/common/vp9_postproc.c b/vp9/common/vp9_postproc.c index 6a71a19fa..b13a63472 100644 --- a/vp9/common/vp9_postproc.c +++ b/vp9/common/vp9_postproc.c @@ -34,6 +34,7 @@ static const int16_t kernel5[] = { static const uint8_t q_diff_thresh = 20; static const uint8_t last_q_thresh = 170; +extern int16_t vpx_rv[]; #if CONFIG_VP9_HIGHBITDEPTH void vp9_highbd_post_proc_down_and_across_c(const uint16_t *src_ptr, diff --git a/vpx_dsp/deblock.c b/vpx_dsp/deblock.c index 411bc7754..2b1b7e30e 100644 --- a/vpx_dsp/deblock.c +++ b/vpx_dsp/deblock.c @@ -8,7 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ #include - +#include "vpx/vpx_integer.h" const int16_t vpx_rv[] = {8, 5, 2, 2, 8, 12, 4, 9, 8, 3, 0, 3, 9, 0, 0, 0, 8, 3, 14, 4, 10, 1, 11, 14, 1, 14, 9, 6, 12, 11, 8, 6, 10, 0, 0, 8, 9, 0, 3, 14, @@ -153,8 +153,7 @@ void vpx_mbpost_proc_across_ip_c(unsigned char *src, int pitch, int rows, void vpx_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols, int flimit) { int r, c, i; - unsigned int seed; - const int16_t *rv3 = &vpx_rv[63 & rand_r(&seed)]; + const int16_t *rv3 = &vpx_rv[63 & rand()]; for (c = 0; c < cols; c++) { unsigned char *s = &dst[c]; diff --git a/vpx_dsp/mips/deblock_msa.c b/vpx_dsp/mips/deblock_msa.c index 616721d8e..dbff053a9 100644 --- a/vpx_dsp/mips/deblock_msa.c +++ b/vpx_dsp/mips/deblock_msa.c @@ -575,8 +575,7 @@ void vpx_mbpost_proc_across_ip_msa(uint8_t *src_ptr, int32_t pitch, void vpx_mbpost_proc_down_msa(uint8_t *dst_ptr, int32_t pitch, int32_t rows, int32_t cols, int32_t flimit) { int32_t row, col, cnt, i; - unsigned int seed; - const int16_t *rv3 = &vpx_rv[63 & rand_r(&seed)]; + const int16_t *rv3 = &vpx_rv[63 & rand()]; v4i32 flimit_vec; v16u8 dst7, dst8, dst_r_b, dst_l_b; v16i8 mask;