shithub: libvpx

Download patch

ref: dcf5b7cfdd281b6d12646744a8019e77d076e0e8
parent: a42df86c035d1bc007dbc816b4b758605135d6d9
author: James Zern <[email protected]>
date: Tue Jun 30 19:23:59 EDT 2015

loopfiltersimpleverticaledge_neon: quiet uninit var warnings

take 2. localize the function parameter to actually remove the warning

Change-Id: I23c02061b5e21b0b75bd33c26062d1e531df7b92

--- a/vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.c
+++ b/vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.c
@@ -94,7 +94,8 @@
 
 #ifdef VPX_INCOMPATIBLE_GCC
 static INLINE
-uint8x8x4_t read_4x8(unsigned char *src, int pitch, uint8x8x4_t x) {
+uint8x8x4_t read_4x8(unsigned char *src, int pitch) {
+    uint8x8x4_t x;
     const uint8x8_t a = vld1_u8(src);
     const uint8x8_t b = vld1_u8(src + pitch * 1);
     const uint8x8_t c = vld1_u8(src + pitch * 2);
@@ -152,7 +153,8 @@
 }
 #else
 static INLINE
-uint8x8x4_t read_4x8(unsigned char *src, int pitch, uint8x8x4_t x) {
+uint8x8x4_t read_4x8(unsigned char *src, int pitch) {
+    uint8x8x4_t x;
     x.val[0] = x.val[1] = x.val[2] = x.val[3] = vdup_n_u8(0);
     x = vld4_lane_u8(src, x, 0);
     src += pitch;
@@ -191,9 +193,9 @@
     qblimit = vdupq_n_u8(*blimit);
 
     src1 = s - 2;
-    d0u8x4 = read_4x8(src1, p, d0u8x4);
+    d0u8x4 = read_4x8(src1, p);
     src1 += p * 8;
-    d1u8x4 = read_4x8(src1, p, d1u8x4);
+    d1u8x4 = read_4x8(src1, p);
 
     q3u8 = vcombine_u8(d0u8x4.val[0], d1u8x4.val[0]);  // d6 d10
     q4u8 = vcombine_u8(d0u8x4.val[2], d1u8x4.val[2]);  // d8 d12