shithub: libvpx

Download patch

ref: 1b275ab898c5ab891f8364041b66152d81b6ae4f
parent: 9de91855ef6d7cc070aea5d8bd8b8faba99cf6f8
parent: 7625c803b3b72385c3990e9b36ff1527634b3f00
author: James Zern <jzern@google.com>
date: Tue Nov 1 18:34:59 EDT 2016

Merge "idct32x32_1_add_neon: clear a couple conv warnings"

--- a/vpx_dsp/arm/idct32x32_1_add_neon.c
+++ b/vpx_dsp/arm/idct32x32_1_add_neon.c
@@ -103,7 +103,7 @@
   dest_stride8 = dest_stride * 8;
   if (a1 >= 0) {  // diff_positive_32_32
     a1 = a1 < 0 ? 0 : a1 > 255 ? 255 : a1;
-    q0u8 = vdupq_n_u8(a1);
+    q0u8 = vdupq_n_u8((uint8_t)a1);
     for (i = 0; i < 2; i++, dest += 16) {  // diff_positive_32_32_loop
       d = dest;
       for (j = 0; j < 4; j++) {
@@ -119,7 +119,7 @@
   } else {  // diff_negative_32_32
     a1 = -a1;
     a1 = a1 < 0 ? 0 : a1 > 255 ? 255 : a1;
-    q0u8 = vdupq_n_u8(a1);
+    q0u8 = vdupq_n_u8((uint8_t)a1);
     for (i = 0; i < 2; i++, dest += 16) {  // diff_negative_32_32_loop
       d = dest;
       for (j = 0; j < 4; j++) {