av1_block_error_lp_sve: fix block_size param type
int -> intptr_t. This fixes a Control Flow Integrity (CFI) sanitizer
failure.
This also fixes a -Wmissing-prototypes warning. The _neon version was
fixed in:
b44333201b *_neon.c: add missing rtcd includes & CONFIG check
Bug: aomedia:3416
Change-Id: Iecf4a0f450435d6afa481695e000bcc0c8f4079c
diff --git a/av1/encoder/arm/av1_error_sve.c b/av1/encoder/arm/av1_error_sve.c
index 52803a9..5a1ad2f 100644
--- a/av1/encoder/arm/av1_error_sve.c
+++ b/av1/encoder/arm/av1_error_sve.c
@@ -12,6 +12,7 @@
#include <assert.h>
#include "config/aom_config.h"
+#include "config/av1_rtcd.h"
#include "aom_dsp/aom_dsp_common.h"
#include "aom_dsp/arm/aom_neon_sve_bridge.h"
@@ -49,7 +50,7 @@
}
int64_t av1_block_error_lp_sve(const int16_t *coeff, const int16_t *dqcoeff,
- int block_size) {
+ intptr_t block_size) {
if (block_size % 32 == 0) {
int64x2_t error[4] = { vdupq_n_s64(0), vdupq_n_s64(0), vdupq_n_s64(0),
vdupq_n_s64(0) };