summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-07 14:42:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-07 14:42:17 +0100
commit1a1a98f644d66c8b3749cf5354044c710dee6e6b (patch)
tree68b9b724a1eadb375f4cc1ac6d34b12d901a59ad /libavutil
parent79e0255956bc8fcdb143f39b2e45db77144ac017 (diff)
downloadffmpeg-streaming-1a1a98f644d66c8b3749cf5354044c710dee6e6b.zip
ffmpeg-streaming-1a1a98f644d66c8b3749cf5354044c710dee6e6b.tar.gz
avutil/ppc/util_altivec: make src pointers const, fix warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/ppc/util_altivec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/ppc/util_altivec.h b/libavutil/ppc/util_altivec.h
index 4892a27..fd3bfd3 100644
--- a/libavutil/ppc/util_altivec.h
+++ b/libavutil/ppc/util_altivec.h
@@ -96,7 +96,7 @@ do { \
/** @brief loads unaligned vector @a *src with offset @a offset
and returns it */
#if HAVE_BIGENDIAN
-static inline vector unsigned char unaligned_load(int offset, uint8_t *src)
+static inline vector unsigned char unaligned_load(int offset, const uint8_t *src)
{
register vector unsigned char first = vec_ld(offset, src);
register vector unsigned char second = vec_ld(offset+15, src);
@@ -112,7 +112,7 @@ static inline vector unsigned char unaligned_load(int offset, uint8_t *src)
* loads vector known misalignment
* @param perm_vec the align permute vector to combine the two loads from lvsl
*/
-static inline vec_u8 load_with_perm_vec(int offset, uint8_t *src, vec_u8 perm_vec)
+static inline vec_u8 load_with_perm_vec(int offset, const uint8_t *src, vec_u8 perm_vec)
{
vec_u8 a = vec_ld(offset, src);
vec_u8 b = vec_ld(offset+15, src);
OpenPOWER on IntegriCloud